Closed Bug 830226 Opened 13 years ago Closed 13 years ago

Reorder memory dumping for increased DMD effectiveness

Categories

(Core :: DMD, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

(Whiteboard: [MemShrink])

Attachments

(1 file)

Currently when dumping memory reports and DMD output via a signal, we do the reports first and DMD second. But the memory reporting allocates some memory for the gzwriter, and that gets reported, but then its released before DMD runs, and so DMD doesn't see it.
With this patch DMD sees the four 64 KiB allocations done by the nsGZFileWriter used for the memory reporter dump.
+ // Because that memory was measured by the memory reporters, we want + // DMD to see it as well. So we deliberately don't call Finish() until after + // DMD finishes. This memory is not measured by the memory reporters, currently. I'm not sure what you mean. r=me with this comment fixed.
Attachment #701679 - Flags: review?(justin.lebar+bug) → review+
> This memory is not measured by the memory reporters, currently. I'm not > sure what you mean. It is measured by "heap-allocated". I'll clarify it.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: