Bug 912589 - have JSRuntime::helperThreadCount() return GetCPUCount(), not GetCPUCount()-1 (r=bhackett)

--HG--
extra : rebase_source : 63918ffad4e0f4c71cf9fc79961b4e794df057b7
This commit is contained in:
Luke Wagner 2013-09-09 14:24:06 -05:00
parent 34d3d2114a
commit 8a161e06d6

View File

@ -1595,9 +1595,9 @@ struct JSRuntime : public JS::shadow::Runtime,
/* Number of helper threads which should be created for this runtime. */
size_t helperThreadCount() const {
#ifdef JS_THREADSAFE
#ifdef JS_WORKER_THREADS
if (requestedHelperThreadCount < 0)
return js::GetCPUCount() - 1;
return js::GetCPUCount();
return requestedHelperThreadCount;
#else
return 0;