mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 05:26:47 +00:00
SpiderMonkey 38 upgrade: 27/35
JS_NewRuntime had the useHelperThreads param removed and a maxNurseryBytes param added. Patch by leper. Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=941805 and https://bugzilla.mozilla.org/show_bug.cgi?id=1034621 This was SVN commit r18681.
This commit is contained in:
@@ -114,7 +114,7 @@ ScriptRuntime::ScriptRuntime(shared_ptr<ScriptRuntime> parentRuntime, int runtim
|
||||
ENSURE(ScriptEngine::IsInitialised() && "The ScriptEngine must be initialized before constructing any ScriptRuntimes!");
|
||||
|
||||
JSRuntime* parentJSRuntime = parentRuntime ? parentRuntime->m_rt : nullptr;
|
||||
m_rt = JS_NewRuntime(runtimeSize, JS_USE_HELPER_THREADS, parentJSRuntime);
|
||||
m_rt = JS_NewRuntime(runtimeSize, JS::DefaultNurseryBytes, parentJSRuntime);
|
||||
ENSURE(m_rt); // TODO: error handling
|
||||
|
||||
JS::SetGCSliceCallback(m_rt, GCSliceCallbackHook);
|
||||
|
||||
Reference in New Issue
Block a user