mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00
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:
parent
a8a8147c7f
commit
e1dcb5781e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user