diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2017-04-19 15:13:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 15:13:30 -0700 |
commit | 48ebab8270a96e505a2be128a4875f903ef1c4b2 (patch) | |
tree | 78313aeb604ebecf715e6f4a5c2cd8b3a1ee907b /src/pal/src/init | |
parent | 9b9989da73f4ee8de5d3c1257d46f8d7295dc44f (diff) | |
download | coreclr-48ebab8270a96e505a2be128a4875f903ef1c4b2.tar.gz coreclr-48ebab8270a96e505a2be128a4875f903ef1c4b2.tar.bz2 coreclr-48ebab8270a96e505a2be128a4875f903ef1c4b2.zip |
Add NUMA and thread affinity support for Unix (#10938)
* Add NUMA and thread affinity support for Unix
This change adds new PAL functions for NUMA and thread affinity support
for Unix and also enables related code in GC and VM for FEATURE_PAL.
It doesn't reflect the limits imposed by CGROUPS on systems with
CGROUPS enables yet.
Diffstat (limited to 'src/pal/src/init')
-rw-r--r-- | src/pal/src/init/pal.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pal/src/init/pal.cpp b/src/pal/src/init/pal.cpp index 8b0e0f53f5..2fdafe4f8c 100644 --- a/src/pal/src/init/pal.cpp +++ b/src/pal/src/init/pal.cpp @@ -42,6 +42,7 @@ SET_DEFAULT_DEBUG_CHANNEL(PAL); // some headers have code with asserts, so do th #include "pal/debug.h" #include "pal/locale.h" #include "pal/init.h" +#include "pal/numa.h" #include "pal/stackstring.hpp" #if HAVE_MACH_EXCEPTIONS @@ -523,6 +524,12 @@ Initialize( goto CLEANUP15; } + if (FALSE == NUMASupportInitialize()) + { + ERROR("Unable to initialize NUMA support\n"); + goto CLEANUP15; + } + TRACE("First-time PAL initialization complete.\n"); init_count++; @@ -548,6 +555,7 @@ Initialize( } goto done; + NUMASupportCleanup(); /* No cleanup required for CRTInitStdStreams */ CLEANUP15: FILECleanupStdHandles(); |