We can't easily disable zonal GC and enable incremental GC
Categories
(Core :: JavaScript: GC, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: pbone, Assigned: pbone)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
We have a choice between:
- non-zonal, non-incremental GC (aka Global GC)
- zonal, non-incremental GC
- zonal, incremental GC.
https://searchfox.org/mozilla-central/source/dom/base/nsJSEnvironment.cpp#2359-2366
It'd be nice to be able to select non-zonal + incremental GC, for testing.
Assignee | ||
Comment 1•5 years ago
|
||
Since this mode covers both incremental and zonal GC, let's rename it to
reflect that. JSGC_MODE_ZONE_INCREMENTAL.
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D24849
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D24850
Assignee | ||
Comment 4•5 years ago
|
||
Hi Jon, While I was working on this I noticed:
https://searchfox.org/mozilla-central/source/js/src/jsapi.cpp#1291
This is probably overridden by prefs, but why would we use zonal, non-incremental GC for the "nominal" configuration (or any configuration)?
Comment 5•5 years ago
|
||
(In reply to Paul Bone [:pbone] from comment #4)
Probably because incremental GC requires explicit support from the embedding (which must trigger incremental slices).
Updated•5 years ago
|
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e86a3bf7315 (part 1) Rename JSGC_MODE_INCREMENTAL r=jonco https://hg.mozilla.org/integration/autoland/rev/4ed979059135 (part 2) Add a incremental non-zonal mode r=jonco https://hg.mozilla.org/integration/autoland/rev/1467f14d7dd6 (part 3) Set the GC modes from prefs with the new mode r=mccr8
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Jon Coppeard (:jonco) from comment #5)
(In reply to Paul Bone [:pbone] from comment #4)
Probably because incremental GC requires explicit support from the embedding (which must trigger incremental slices).
In that case there may be a problem where the minimal config (nearby) uses incremental GC.
Assignee | ||
Comment 8•5 years ago
|
||
I wanted to see what would happen to memory use everywhere without zonal GC. I thought it might improve after what I saw on Bug 1530397. but it got worse, not sure why:
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7e86a3bf7315
https://hg.mozilla.org/mozilla-central/rev/4ed979059135
https://hg.mozilla.org/mozilla-central/rev/1467f14d7dd6
Description
•