mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
ce74f614c2
The old system required wasm::DisableHugeMemory() to be called before anyone calls wasm::HugeMemoryEnabled(), and enforced that with some runtime checks. We had a bug where GetOptimizedBuildEncodingId() (which queries the huge memory flag) would be called by Gecko before we read the pref. This commit refactors this code to use a JS::Pref instead which is always set before JS_Init() is invoked. This ensures that it is never changed after we've observed the value and can drop all the fancy runtime checking. Differential Revision: https://phabricator.services.mozilla.com/D227273 |
||
---|---|---|
.. | ||
crashtests | ||
idl | ||
loader | ||
public | ||
shell | ||
src | ||
tests | ||
wrappers | ||
mach_commands.py | ||
metrics.yaml | ||
moz.build |