summaryrefslogtreecommitdiff
path: root/rts/Task.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2016-06-11 11:07:14 +0100
committerSimon Marlow <marlowsd@gmail.com>2016-06-17 14:52:45 +0100
commit498ed2664219f7e8f1077f46ad2061aba2f57de4 (patch)
tree123f66f55096876114b89876e4adf287ad944818 /rts/Task.c
parenta7f65b8787b0521397ee09061394425aa69bc6e0 (diff)
downloadhaskell-498ed2664219f7e8f1077f46ad2061aba2f57de4.tar.gz
NUMA cleanups
- Move the numaMap and nNumaNodes out of RtsFlags to Capability.c - Add a test to tests/rts
Diffstat (limited to 'rts/Task.c')
-rw-r--r--rts/Task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Task.c b/rts/Task.c
index 9a827745ba..9a658e019c 100644
--- a/rts/Task.c
+++ b/rts/Task.c
@@ -429,7 +429,7 @@ workerStart(Task *task)
setThreadAffinity(cap->no, n_capabilities);
}
if (RtsFlags.GcFlags.numa && !RtsFlags.DebugFlags.numa) {
- setThreadNode(RtsFlags.GcFlags.numaMap[task->node]);
+ setThreadNode(numa_map[task->node]);
}
// set the thread-local pointer to the Task:
@@ -510,7 +510,7 @@ void rts_setInCallCapability (
if (RtsFlags.GcFlags.numa) {
task->node = capNoToNumaNode(preferred_capability);
if (!DEBUG_IS_ON || !RtsFlags.DebugFlags.numa) { // faking NUMA
- setThreadNode(RtsFlags.GcFlags.numaMap[task->node]);
+ setThreadNode(numa_map[task->node]);
}
}
}