summaryrefslogtreecommitdiff
path: root/src/pal
diff options
context:
space:
mode:
authorXiangyang (Mark) Guo <xiangyang.guo@intel.com>2017-07-19 02:25:54 -0700
committerJan Vorlicek <janvorli@microsoft.com>2017-07-19 11:25:54 +0200
commita14608efbad1bcb4e9d36a418e1e5ac267c083fb (patch)
treeac507d92bf9519ff2ba343fde818a0231027182f /src/pal
parent3a24d8bff0398762745d9f23e10184f102943a80 (diff)
downloadcoreclr-a14608efbad1bcb4e9d36a418e1e5ac267c083fb.tar.gz
coreclr-a14608efbad1bcb4e9d36a418e1e5ac267c083fb.tar.bz2
coreclr-a14608efbad1bcb4e9d36a418e1e5ac267c083fb.zip
fix issue 12725 (#12728)
Diffstat (limited to 'src/pal')
-rw-r--r--src/pal/src/numa/numa.cpp6
-rw-r--r--src/pal/src/numa/numashim.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/pal/src/numa/numa.cpp b/src/pal/src/numa/numa.cpp
index 2d58184187..91cf6871c1 100644
--- a/src/pal/src/numa/numa.cpp
+++ b/src/pal/src/numa/numa.cpp
@@ -74,6 +74,12 @@ bool g_numaAvailable = false;
void* numaHandle = nullptr;
+#if HAVE_NUMA_H
+#define PER_FUNCTION_BLOCK(fn) decltype(fn)* fn##_ptr;
+FOR_ALL_NUMA_FUNCTIONS
+#undef PER_FUNCTION_BLOCK
+#endif // HAVE_NUMA_H
+
static const int MaxCpusPerGroup = 8 * sizeof(KAFFINITY);
static const WORD NO_GROUP = 0xffff;
diff --git a/src/pal/src/numa/numashim.h b/src/pal/src/numa/numashim.h
index 4d13d8aeba..428fc8822a 100644
--- a/src/pal/src/numa/numashim.h
+++ b/src/pal/src/numa/numashim.h
@@ -23,7 +23,7 @@
PER_FUNCTION_BLOCK(numa_node_to_cpus) \
PER_FUNCTION_BLOCK(numa_bitmask_weight) \
PER_FUNCTION_BLOCK(numa_bitmask_isbitset) \
- PER_FUNCTION_BLOCK(numa_free_cpumask)
+ PER_FUNCTION_BLOCK(numa_bitmask_free)
// Declare pointers to all the used numa functions
#define PER_FUNCTION_BLOCK(fn) extern decltype(fn)* fn##_ptr;
@@ -40,7 +40,7 @@ FOR_ALL_NUMA_FUNCTIONS
#define numa_node_to_cpus(...) numa_node_to_cpus_ptr(__VA_ARGS__)
#define numa_bitmask_weight(...) numa_bitmask_weight_ptr(__VA_ARGS__)
#define numa_bitmask_isbitset(...) numa_bitmask_isbitset_ptr(__VA_ARGS__)
-#define numa_free_cpumask(...) numa_free_cpumask_ptr(__VA_ARGS__)
+#define numa_bitmask_free(...) numa_bitmask_free_ptr(__VA_ARGS__)
#endif // HAVE_NUMA_H