gecko-dev/js/xpconnect
Ryan Hunt ce74f614c2 Bug 1927663 - wasm: Refactor handling of 'disable_huge_memory'. r=bvisness
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
2024-11-06 17:16:48 +00:00
..
crashtests Bug 1907230: Fix error handling in xpc::CreateSandboxObject r=mccr8 2024-07-16 00:08:14 +00:00
idl Bug 1892217 - Remove Components.utils.getDOMClassInfo. r=mccr8 2024-04-18 14:29:19 +00:00
loader Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato 2024-10-30 11:05:24 +00:00
public Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato 2024-07-17 11:15:31 +00:00
shell Bug 1660754 - Enable JS RT targets for AFL++ r=decoder 2024-05-07 01:52:34 +00:00
src Bug 1927663 - wasm: Refactor handling of 'disable_huge_memory'. r=bvisness 2024-11-06 17:16:48 +00:00
tests Bug 1924202 - Add initial implementation for Error.isError proposal r=dminor,arai 2024-10-21 16:45:54 +00:00
wrappers Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato 2024-10-30 11:05:24 +00:00
mach_commands.py Bug 1903631 - Disable the socket process in mach xpcshell r=nalexander 2024-06-19 18:25:46 +00:00
metrics.yaml Bug 1918226 - Use Glean APIs for slow_script_warning.shown* events r=Gijs 2024-09-20 18:43:04 +00:00
moz.build