Closed
Bug 1016153
Opened 11 years ago
Closed 11 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•11 years ago
|
Whiteboard: [MemShrink][clownshoes]
Updated•11 years ago
|
Component: HTML: Parser → XML
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [MemShrink][clownshoes] → [MemShrink:P2][clownshoes]
Comment 3•11 years ago
|
||
bkelly checked and didn't find poolGrow in DMD reports from tarako.
Flags: needinfo?(erahm)
Updated•11 years ago
|
Attachment #8428970 -
Flags: review?(jst) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•