gc, pal: Avoid linking libnuma.so on non-NUMA systems (#1468)
authorLeandro A. F. Pereira <leandro.pereira@microsoft.com>
Sat, 11 Jan 2020 03:34:06 +0000 (19:34 -0800)
committerStephen Toub <stoub@microsoft.com>
Sat, 11 Jan 2020 03:34:06 +0000 (22:34 -0500)
commitbab74448f70fccd2acd0d12eb6d6d3dd4bae7f15
tree83faf4c0172ff7017fae786ca3770de803802366
parent72081db64161fd8d6a1e0e80e6b0f625c40026d6
gc, pal: Avoid linking libnuma.so on non-NUMA systems (#1468)

* gc, pal: Avoid linking libnuma.so on non-NUMA systems

In an effort to reduce the system calls performed during the
initialization, this seemed like another low-hanging fruit: only link
in libnuma.so if the system has more than one NUMA node.

* gc, pal: Remove unneeded dlsym() call

The result of dlsym() is never attributed to any variable, and this
function is never called, so it's safe to remove these dlsym() calls.
src/coreclr/src/gc/unix/gcenv.unix.cpp
src/coreclr/src/pal/src/numa/numa.cpp