mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 821216 - Don't trigger off thread compilation with no threads available, r=dvander.
This commit is contained in:
parent
e852156592
commit
941a161781
@ -20,7 +20,7 @@ using mozilla::DebugOnly;
|
||||
bool
|
||||
js::OffThreadCompilationAvailable(JSContext *cx)
|
||||
{
|
||||
return cx->runtime->useHelperThreads();
|
||||
return cx->runtime->useHelperThreads() && cx->runtime->helperThreadCount() > 0;
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user