diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-11-01 13:10:03 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-11-01 13:10:03 -0500 |
commit | 65ebf07e459733b9dfb51b02ac987411bd478841 (patch) | |
tree | 164ebe6a5ed59230e45c7c0710a080cf21854898 /rts/ThreadPaused.c | |
parent | 375512cfbb968ed0ffbdf33153b71fab4b707dce (diff) | |
parent | cef667b081c71008e0633d276349dd863cb46d7f (diff) | |
download | haskell-65ebf07e459733b9dfb51b02ac987411bd478841.tar.gz |
Merge branch 'wip/tsan/misc' into wip/tsan/all
Diffstat (limited to 'rts/ThreadPaused.c')
-rw-r--r-- | rts/ThreadPaused.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/ThreadPaused.c b/rts/ThreadPaused.c index 3404c20418..13fc2b4ca0 100644 --- a/rts/ThreadPaused.c +++ b/rts/ThreadPaused.c @@ -331,7 +331,7 @@ threadPaused(Capability *cap, StgTSO *tso) if (cur_bh_info != bh_info) { bh_info = cur_bh_info; #if defined(PROF_SPIN) - ++whitehole_threadPaused_spin; + NONATOMIC_ADD(&whitehole_threadPaused_spin, 1); #endif busy_wait_nop(); goto retry; |