summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-12-01 19:01:55 -0500
committerBen Gamari <ben@smart-cactus.org>2020-01-29 14:32:01 -0500
commitf0ff17b669b9545537eb32e8fa5170544f719b36 (patch)
treeb813c4354ba26721314bc49182a686da5df4bbd1 /rts
parent9d50108cfec9b5f5bd31ac7606a82e015c765684 (diff)
downloadhaskell-f0ff17b669b9545537eb32e8fa5170544f719b36.tar.gz
Fix Schedule
Diffstat (limited to 'rts')
-rw-r--r--rts/Schedule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Schedule.c b/rts/Schedule.c
index 8147cff295..2e71189c07 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -656,7 +656,7 @@ shouldYieldCapability (Capability *cap, Task *task, bool didGcLast)
// We would usually need to hold cap->lock to look at n_returning_tasks but
// we don't here since this is just an approximate predicate (right?).
- ANNOTATE_BENIGN_RACE(&cap->n_returning_tasks, "shouldYieldCapability");
+ TSAN_ANNOTATE_BENIGN_RACE(&cap->n_returning_tasks, "shouldYieldCapability");
return ((RELAXED_LOAD(&pending_sync) && !didGcLast) ||
cap->n_returning_tasks != 0 ||
(!emptyRunQueue(cap) && (task->incall->tso == NULL