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:
Jon Coppeard 2021-06-23 14:09:18 +00:00
parent ef28a8b4ef
commit 6e8963d230

View File

@ -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);
}