javascript.options.gczeal is missing from about:config

NEW
Unassigned

Status

()

Core
Preferences: Backend
3 years ago
3 years ago

People

(Reporter: jonco, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8525453 [details] [diff] [review]
add-zeal-prefs

nsJSContext has code to set the GC zeal level based on the javascript.options.gczeal pref, but this doesn't appear in about:config.

It looked like the problem is that no pref is set up in all.js so I added this (attached patch) but that didn't solve the problem.  It seems that JS_GC_ZEAL is not appropriately defined in all.js, although it is set when compiling nsJSEnvironment.cpp, and defines like JSGC_GENERATIONAL are set correctly.

Presumably this used to work at some point as it's mentioned in the MDN docs.
You need to log in before you can comment on or make changes to this bug.