summaryrefslogtreecommitdiff
path: root/rts/Task.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/Task.c')
-rw-r--r--rts/Task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/Task.c b/rts/Task.c
index 0ec60f7508..7120436bb4 100644
--- a/rts/Task.c
+++ b/rts/Task.c
@@ -114,7 +114,8 @@ newTask (void)
#endif
Task *task;
- task = stgMallocBytes(sizeof(Task), "newTask");
+#define ROUND_TO_CACHE_LINE(x) ((((x)+63) / 64) * 64)
+ task = stgMallocBytes(ROUND_TO_CACHE_LINE(sizeof(Task)), "newTask");
task->cap = NULL;
task->stopped = rtsFalse;