This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/3635] New: reduce number of global objects
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 4 Dec 2006 16:27:17 -0000
- Subject: [Bug translator/3635] New: reduce number of global objects
- Reply-to: sourceware-bugzilla at sourceware dot org
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.