Bug 1431353 - Remove limit on number of threads used for off-thread parsing r=luke

This commit is contained in:
Jon Coppeard 2018-01-23 10:35:58 +00:00
parent 8d70b7215d
commit d46c20f6fe

View File

@ -1192,12 +1192,7 @@ GlobalHelperThreadState::maxParseThreads() const
{
if (IsHelperThreadSimulatingOOM(js::THREAD_TYPE_PARSE))
return 1;
// Don't allow simultaneous off thread parses, to reduce contention on the
// atoms table. Note that wasm compilation depends on this to avoid
// stalling the helper thread, as off thread parse tasks can trigger and
// block on other off thread wasm compilation tasks.
return 1;
return cpuCount;
}
size_t