Bug 821216 - Don't trigger off thread compilation with no threads available, r=dvander.

This commit is contained in:
Brian Hackett 2012-12-13 15:27:07 -07:00
parent e852156592
commit 941a161781

View File

@ -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