mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1717204 - Increase the number of threads used by the XPCOM thread pool to match the number of cores r=bas
Currently the XPCOM thead pool creates one less thread than the number of cores. The JS helper thread pool creates an equal number. I tested increasing the number of threads to match the number of cores and found it resolved this regression. Differential Revision: https://phabricator.services.mozilla.com/D118327
This commit is contained in:
parent
ef28a8b4ef
commit
6e8963d230
@ -51,7 +51,7 @@ int32_t TaskController::GetPoolThreadCount() {
|
||||
|
||||
int32_t numCores = std::max<int32_t>(1, PR_GetNumberOfProcessors());
|
||||
|
||||
return std::clamp<int32_t>(numCores - 1, kMinimumPoolThreadCount,
|
||||
return std::clamp<int32_t>(numCores, kMinimumPoolThreadCount,
|
||||
kMaximumPoolThreadCount);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user