Closed Bug 897539 Opened 11 years ago Closed 11 years ago

uninline ProtocolErrorBreakpoint to avoid code and string bloat

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: froydnj, Unassigned)

Details

Attachments

(1 file)

      No description provided.
Having this error-only function inlined causes code bloat.  The string
argument to printf_stderr also gets duplicated in all files where
ProtocolErrorBreakpoint is called.

I see ~7k code size reduction over ipc/ipdl/*.o from this change,
according to size(1).  Curiously, I don't see any data size reduction
from this according to size(1), but I verified that the string section
for one of the .o files *is* smaller (~25 bytes * ~170 files, so another
3k or so in savings), so it's possible size(1) is not a reliable guide
here.
Attachment #780451 - Flags: review?(bent.mozilla)
Attachment #780451 - Flags: review?(bent.mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/6d171bc59674
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: