Closed Bug 1854072 Opened 3 years ago Closed 2 years ago

Parallel marking threshold pref not set correctly

Categories

(Core :: JavaScript: GC, defect, P3)

defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- unaffected
firefox118 --- disabled
firefox119 --- disabled
firefox120 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

The value of the pref javascript.options.mem.gc_parallel_marking_threshold_kb is not respected if it's over 10000 (i.e. ~10MB) because there's a limit in SetMemoryPrefChangedCallbackInt:

https://searchfox.org/mozilla-central/source/dom/base/nsJSEnvironment.cpp#1942

This means that the current prefs for non-macOS platforms are not set and the default of 10MB is used instead.

Keywords: regression
Regressed by: 1847567

Set release status flags based on info from the regressing bug 1847567

While the limit when setting the pref is surprising, I think it makes more
sense to change this pref to use MB like most of the other GC prefs after which
the problem will not arise.

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e9d30638c4f Change parallel marking threshold pref to use MB instead of KB r=sfink
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

The patch landed in nightly and beta is affected.
:jonco, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox118 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(jcoppeard)

Parallel marking is disabled by default so this does not need an uplift.

Flags: needinfo?(jcoppeard)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

This occurrence was missed from the previous patch and so the GC param is named
'KB' even though the value is interpreted as MB.

This affects the shell and testing functions only.

Severity: -- → S3
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0a97f442d4da Part 2: Fix the name of the GC parameter for the parallel marking threshold r=sfink
Target Milestone: 119 Branch → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago → 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: