summaryrefslogtreecommitdiff
path: root/src/utilcode
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2019-09-22 18:31:09 -0700
committerGitHub <noreply@github.com>2019-09-22 18:31:09 -0700
commit281a383d913e7b6013068ec430fc21cf81f43350 (patch)
treea26e240be911f5b47d8a1cf0c3e3bb326aaf3a51 /src/utilcode
parent0fca8289590b2eb45511345232f67e38118ba1e8 (diff)
downloadcoreclr-281a383d913e7b6013068ec430fc21cf81f43350.tar.gz
coreclr-281a383d913e7b6013068ec430fc21cf81f43350.tar.bz2
coreclr-281a383d913e7b6013068ec430fc21cf81f43350.zip
Do not clip CPU count when CPU quota is used. (#26153) (#26806)
Diffstat (limited to 'src/utilcode')
-rw-r--r--src/utilcode/util.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/utilcode/util.cpp b/src/utilcode/util.cpp
index 8f62d53f95..e0f0200076 100644
--- a/src/utilcode/util.cpp
+++ b/src/utilcode/util.cpp
@@ -1289,10 +1289,6 @@ int GetCurrentProcessCpuCount()
#else // !FEATURE_PAL
count = PAL_GetLogicalCpuCountFromOS();
-
- uint32_t cpuLimit;
- if (PAL_GetCpuLimit(&cpuLimit) && cpuLimit < count)
- count = cpuLimit;
#endif // !FEATURE_PAL
cCPUs = count;