diff options
Diffstat (limited to 'src/pal')
-rw-r--r-- | src/pal/src/thread/thread.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pal/src/thread/thread.cpp b/src/pal/src/thread/thread.cpp index 42209a6028..1bc89944dd 100644 --- a/src/pal/src/thread/thread.cpp +++ b/src/pal/src/thread/thread.cpp @@ -3079,10 +3079,9 @@ PAL_GetCurrentThreadAffinitySet(SIZE_T size, UINT_PTR* data) if (st == 0) { const SIZE_T BitsPerBitsetEntry = 8 * sizeof(UINT_PTR); - int nrcpus = PAL_GetTotalCpuCount(); // Get info for as much processors as it is possible to fit into the resulting set - SIZE_T remainingCount = std::min(size * BitsPerBitsetEntry, (SIZE_T)nrcpus); + SIZE_T remainingCount = std::min(size * BitsPerBitsetEntry, (SIZE_T)CPU_SETSIZE); SIZE_T i = 0; while (remainingCount != 0) { |