* [Bug translator/3635] New: reduce number of global objects
@ 2006-12-04 20:10 fche at redhat dot com
2007-10-02 21:41 ` [Bug translator/3635] " fche at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2006-12-04 20:10 UTC (permalink / raw)
To: systemtap
In order to further reduce our consumption of ppc TOC entries,
consider revamping the way script globals (and their locks) are
emitted by the translator. It may be sufficient to plop them
all into a single global struct, like this:
BEFORE: int64_t global_var;
rwlock_t global_var_lock;
int64_t global_var2;
rwlock_t global_var2_lock;
...
AFTER: struct globals {
int64_t var;
rwlock_t var_lock;
int64_t var2;
rwlock_t var2_lock;
...
} globals;
Of course, code that refers to the values would have to adapt.
--
Summary: reduce number of global objects
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3635
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/3635] reduce number of global objects
2006-12-04 20:10 [Bug translator/3635] New: reduce number of global objects fche at redhat dot com
@ 2007-10-02 21:41 ` fche at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2007-10-02 21:41 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2007-10-02 21:41 -------
patch committed
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=3635
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-02 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-04 20:10 [Bug translator/3635] New: reduce number of global objects fche at redhat dot com
2007-10-02 21:41 ` [Bug translator/3635] " fche at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).