summaryrefslogtreecommitdiff
path: root/rts/Task.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-09-27 18:25:39 +0000
committerBen Gamari <ben@smart-cactus.org>2020-11-24 12:03:02 -0500
commit67716ed34f7a588422644402c38288cfe257747d (patch)
treeac4a1242cc9dedb85455f682f2ea29db3c6a0bdb /rts/Task.c
parent7ebad34c81dfd25a66bea6501aab01427bce6eda (diff)
downloadhaskell-67716ed34f7a588422644402c38288cfe257747d.tar.gz
rts: Use relaxed operations for cap->running_task (TODO)
This shouldn't be necessary since only the owning thread of the capability should be touching this.
Diffstat (limited to 'rts/Task.c')
-rw-r--r--rts/Task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Task.c b/rts/Task.c
index 11ba5f1581..5fc2331827 100644
--- a/rts/Task.c
+++ b/rts/Task.c
@@ -473,7 +473,7 @@ startWorkerTask (Capability *cap)
// else get in, because the new worker Task has nowhere to go to
// sleep so that it could be woken up again.
ASSERT_LOCK_HELD(&cap->lock);
- cap->running_task = task;
+ RELAXED_STORE(&cap->running_task, task);
// Set the name of the worker thread to the original process name followed by
// ":w", but only if we're on Linux where the program_invocation_short_name