We shouldn't send promotion rate telemetry when the nursery was empty
Categories
(Core :: JavaScript: GC, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: jonco, Assigned: allstars.chh)
Details
Attachments
(2 files)
As spotted by Steve in code review. Currently we always send promotion rate telemetry after nursery collection, even when the nursery was empty. In this case we send a dummy value of zero. I don't think this makes sense.
Comment 1•5 years ago
|
||
(In reply to Jon Coppeard (:jonco) from comment #0)
As spotted by Steve in code review. Currently we always send promotion rate telemetry after nursery collection, even when the nursery was empty. In this case we send a dummy value of zero. I don't think this makes sense.
Actually, in that review I also said that this wouldn't happen -- I don't think we can reach that code with an empty nursery, because the entire doCollection is skipped if nursery.isEmpty()
.
Reporter | ||
Comment 2•5 years ago
|
||
(In reply to Steve Fink [:sfink] [:s:] from comment #1)
the entire doCollection is skipped if
nursery.isEmpty()
.
The telemetry is sent at the end of collection() so I think this does happen sadly.
Reporter | ||
Comment 3•5 years ago
|
||
Yoshi, can you look at this when you get the chance?
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
As we have bail out early if !isEnabled()
https://searchfox.org/mozilla-central/rev/5e6c7717255ca9638b2856c2b2058919aec1d21d/js/src/gc/Nursery.cpp#965
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/583863c0f21a
https://hg.mozilla.org/mozilla-central/rev/00f8ffa561fb
Description
•