From 67716ed34f7a588422644402c38288cfe257747d Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 27 Sep 2019 18:25:39 +0000 Subject: 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. --- rts/Task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts/Task.c') 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 -- cgit v1.2.1