summaryrefslogtreecommitdiff
path: root/rts/posix/OSMem.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/posix/OSMem.c')
-rw-r--r--rts/posix/OSMem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index 6e9af3e9c3..febeffbd98 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -585,8 +585,8 @@ StgWord osNumaMask(void)
#if HAVE_LIBNUMA
struct bitmask *mask;
mask = numa_get_mems_allowed();
- if (mask->size > sizeof(StgWord)*8) {
- barf("Too many NUMA nodes");
+ if (osNumaNodes() > sizeof(StgWord)*8) {
+ barf("osNumaMask: too many NUMA nodes (%d)", osNumaNodes());
}
return mask->maskp[0];
#else