mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854197 - Only initialize WorkerThreadState in parallel mode. r=luke
This commit is contained in:
parent
52f4e2e4ba
commit
2557231c7a
@ -5218,8 +5218,10 @@ js::CompileAsmJS(JSContext *cx, TokenStream &ts, ParseNode *fn, const CompileOpt
|
||||
return Warn(cx, JSMSG_USE_ASM_TYPE_FAIL, "Platform missing signal handler support");
|
||||
|
||||
# ifdef JS_PARALLEL_COMPILATION
|
||||
if (!EnsureParallelCompilationInitialized(cx->runtime))
|
||||
return Warn(cx, JSMSG_USE_ASM_TYPE_FAIL, "Failed initialization of compilation threads");
|
||||
if (OffThreadCompilationEnabled(cx)) {
|
||||
if (!EnsureParallelCompilationInitialized(cx->runtime))
|
||||
return Warn(cx, JSMSG_USE_ASM_TYPE_FAIL, "Failed compilation thread initialization");
|
||||
}
|
||||
# endif
|
||||
|
||||
ScopedJSDeletePtr<AsmJSModule> module;
|
||||
|
Loading…
Reference in New Issue
Block a user