Bug 1923595, don't use GetHeterogeneousCpuInfo on Windows to control the number of TaskController's background threads r=bas

Differential Revision: https://phabricator.services.mozilla.com/D226974
This commit is contained in:
Olli Pettay 2024-10-26 19:48:59 +00:00
parent a8a8147c7f
commit e1dcb5781e

View File

@ -78,7 +78,7 @@ int32_t TaskController::GetPoolThreadCount() {
}
int32_t numCores = 0;
#if (defined(XP_MACOSX) && defined(__aarch64__)) || defined(XP_WIN)
#if defined(XP_MACOSX) && defined(__aarch64__)
if (const auto& cpuInfo = hal::GetHeterogeneousCpuInfo()) {
// -1 because of the main thread.
numCores = cpuInfo->mBigCpus.Count() + cpuInfo->mMediumCpus.Count() - 1;