Closed Bug 1721168 Opened 3 years ago Closed 3 years ago

Bring shell's default GC slice budget in line with the browser

Categories

(Core :: JavaScript: GC, task, P1)

task

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

The shell's default GC slice budget is currently 10ms whereas the browser's is 5ms. We should bring these into line.

In the browser this is set by the pref javascript.options.mem.gc_incremental_slice_ms:

https://searchfox.org/mozilla-central/source/modules/libpref/init/all.js#1143

In the shell it's set directly:

https://searchfox.org/mozilla-central/source/js/src/shell/js.cpp#12771

This sets the budget to 5ms, as it is for the browser.

Depends on D120321

Severity: -- → N/A
Priority: -- → P1
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/41b9fb73495f
Make the JS shell's default GC slice budget the same as the browser's r=sfink
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: