summaryrefslogtreecommitdiff
path: root/src/pal/src/numa/numa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/src/numa/numa.cpp')
-rw-r--r--src/pal/src/numa/numa.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/pal/src/numa/numa.cpp b/src/pal/src/numa/numa.cpp
index 0c9d4090a5..aabb800bac 100644
--- a/src/pal/src/numa/numa.cpp
+++ b/src/pal/src/numa/numa.cpp
@@ -25,11 +25,6 @@ SET_DEFAULT_DEBUG_CHANNEL(NUMA);
#include "pal/corunix.hpp"
#include "pal/thread.hpp"
-#if HAVE_PTHREAD_NP_H
-#include <pthread_np.h>
-#endif
-
-#include <pthread.h>
#include <dlfcn.h>
#ifdef __FreeBSD__
#include <stdlib.h>
@@ -43,10 +38,6 @@ SET_DEFAULT_DEBUG_CHANNEL(NUMA);
using namespace CorUnix;
-#if HAVE_CPUSET_T
-typedef cpuset_t cpu_set_t;
-#endif
-
// The highest NUMA node available
int g_highestNumaNode = 0;
// Is numa available
@@ -213,7 +204,7 @@ VirtualAllocExNuma(
#if HAVE_NUMA_H
if (result != NULL && g_numaAvailable)
{
- int nodeMaskLength = (g_highestNumaNode + 1 + sizeof(unsigned long) - 1) / sizeof(unsigned long);
+ int nodeMaskLength = (g_highestNumaNode + sizeof(unsigned long) - 1) / sizeof(unsigned long);
unsigned long *nodeMask = (unsigned long*)alloca(nodeMaskLength * sizeof(unsigned long));
memset(nodeMask, 0, nodeMaskLength);