summaryrefslogtreecommitdiff
path: root/src/classlibnative
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2019-04-05 02:53:32 +0200
committerJan Vorlicek <janvorli@microsoft.com>2019-04-09 01:26:55 +0200
commit060990945a0117cb824b9d1c1e6c3a336533a3ee (patch)
treee762ccb63b9843ccf75d6f87b6ab14cfe352d40c /src/classlibnative
parent187410154a323024938a3281fb5a49f5e59ec350 (diff)
downloadcoreclr-060990945a0117cb824b9d1c1e6c3a336533a3ee.tar.gz
coreclr-060990945a0117cb824b9d1c1e6c3a336533a3ee.tar.bz2
coreclr-060990945a0117cb824b9d1c1e6c3a336533a3ee.zip
Remove Unix CPU groups emulation
This change removes CPU groups emulation from Unix PAL and modifies the GC and thread pool code accordingly.
Diffstat (limited to 'src/classlibnative')
-rw-r--r--src/classlibnative/bcltype/system.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classlibnative/bcltype/system.cpp b/src/classlibnative/bcltype/system.cpp
index 12397a330e..38e5bba9ad 100644
--- a/src/classlibnative/bcltype/system.cpp
+++ b/src/classlibnative/bcltype/system.cpp
@@ -325,13 +325,14 @@ INT32 QCALLTYPE SystemNative::GetProcessorCount()
BEGIN_QCALL;
+#ifndef FEATURE_PAL
CPUGroupInfo::EnsureInitialized();
if(CPUGroupInfo::CanEnableThreadUseAllCpuGroups())
{
processorCount = CPUGroupInfo::GetNumActiveProcessors();
}
-
+#endif // !FEATURE_PAL
// Processor count will be 0 if CPU groups are disabled/not supported
if(processorCount == 0)
{