Closed
Bug 1016153
Opened 10 years ago
Closed 10 years ago
Avoid slop in xmlparse.c:poolGrow()
Categories
(Core :: XML, defect)
Core
XML
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
(Whiteboard: [MemShrink:P2][clownshoes])
Attachments
(1 file)
1.04 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
xmlparse.c:poolGrow() does a classic clownshoes allocation -- it requests space for 1024 chars (which are 2 bytes each) plus a few extra bytes for a header. This amounts to slightly more than 2048 bytes, which jemalloc rounds up to 4096 bytes. Just after starting Firefox, this slop takes up about 250 KiB. It appears to disappear fairly quickly; I guess the XML parsing finishes and the memory is freed. Still, definitely worth fixing.
Assignee | ||
Updated•10 years ago
|
Whiteboard: [MemShrink][clownshoes]
Updated•10 years ago
|
Component: HTML: Parser → XML
Assignee | ||
Updated•10 years ago
|
Whiteboard: [MemShrink][clownshoes] → [MemShrink:P2][clownshoes]
Comment 3•10 years ago
|
||
bkelly checked and didn't find poolGrow in DMD reports from tarako.
Flags: needinfo?(erahm)
Updated•10 years ago
|
Attachment #8428970 -
Flags: review?(jst) → review+
Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ef3bb9c8101b
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ef3bb9c8101b
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•