Closed Bug 1338208 Opened 8 years ago Closed 8 years ago

Nursery profiling information is wrong if the nursery is empty

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

We don't currently clear profileDurations_ in Nursery::collect so if the nursery is empty and we skip calling doCollection we will report the durations for the previous collection.
This can be demonstrated by running: $ JS_GC_PROFILE_NURSERY=0 ./shell -e 'a = []; for (let i = 0; i < 200000; i++) { a[i] = { x: i } } gc(); gc(); gc();' The times given for e.g. marking the whole cell buffer are all the same for the last few collections.
Attachment #8835582 - Flags: review?(sphink)
Attachment #8835582 - Flags: review?(sphink) → review+
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/147e70a78d1a Fix nursery profiling output if the nursery is empty r=sfink
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: