Fix RecycledLists size on Unix
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 10 Apr 2019 10:08:27 +0000 (12:08 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 10 Apr 2019 10:08:27 +0000 (12:08 +0200)
commit3c07febf02b67c4c5f8eef846d5aa581372e454e
tree38599b7cf17576543ec677ab41f07d24a30b13f0
parentcee1a8c9d9c6669318d1567c85457fbcd642587d
Fix RecycledLists size on Unix

The list size was set to g_SystemInfo.dwNumberOfProcessors which is a
number of processors the current process is allowed to run on, but not
the total number of processors in the system. Fixed to use
PAL_GetTotalCpuCount.

Also revert a change to the mbind node mask length computation I've
incorrectly made in my last commit and make it clear that the value is
a number of used bits in the node mask, which is the highest numa node
plus 1. And finally, re-reading the mbind doc, I've found that the
maxnode parameter is in fact "number of nodes" in the mask, so fixing
that too.
src/gc/unix/gcenv.unix.cpp
src/pal/src/numa/numa.cpp
src/vm/win32threadpool.cpp