nonmoving: Fix various data races found by ThreadSanitizer
Here we fix a number of data races spotted by ThreadSanitizer. For better or worse, there is nothing here that would be unsound on x86-64, although AArch64 is another story.
Based on !9372 (closed).
Edited by Ben Gamari
Merge request reports
Activity
Filter activity
added RTS non-moving GC labels
added 22 commits
- 16a95a38 - rts: Encapsulate sched_state
- 6a4fd558 - PrimOps: Fix benign MutVar race
- 149a91be - rts: Style fix
- c5b78290 - compiler: Use release store in eager blackholing
- ab656ae7 - rts: Fix ordering of makeStableName
- 93265cc3 - rts: Use ordered accesses instead of explicit barriers
- a6ca5913 - rts: Statically allocate capabilities
- 60ffe15f - rts: Ensure that all accesses to pending_sync are atomic
- 5e565a67 - rts: Note race with wakeBlockingQueue
- 1e04cf59 - nonmoving: Fix race in marking of blackholes
- 2f938591 - nonmoving: Fix segment list races
- 2726d722 - nonmoving: Use atomic when looking at bd->gen
- d3cd49cf - nonmoving: Eliminate race in bump_static_flag
- 6f52b643 - nonmoving: Ensure that mutable fields have acquire barrier
- 947feeab - nonmoving: Fix races in collector status tracking
- 5b09ee54 - nonmoving: Make segment state updates atomic
- 651f6f3f - nonmoving: Refactor update remembered set initialization
- b2b2008f - nonmoving: Ensure that we aren't holding locks when closing them
- c868eee0 - nonmoving: Make bitmap accesses atomic
- 87e3d20d - nonmoving: Fix benign race in update remembered set check
- a5b1d1d2 - nonmoving: Fix race in shortcutting
- e090f105 - nonmoving: Make free list counter accesses atomic
Toggle commit listmentioned in issue #22621 (closed)
added 130 commits
-
e090f105...3d55d8ab - 117 commits from branch
master
- 2d71481a - nonmoving: Fix race in marking of blackholes
- d92b5bf5 - nonmoving: Fix segment list races
- 0b0d924e - nonmoving: Use atomic when looking at bd->gen
- 9a9874d2 - nonmoving: Eliminate race in bump_static_flag
- d6990e67 - nonmoving: Ensure that mutable fields have acquire barrier
- 83c2876d - nonmoving: Fix races in collector status tracking
- 377697ea - nonmoving: Make segment state updates atomic
- c96fc9d5 - nonmoving: Refactor update remembered set initialization
- 71aea6d3 - nonmoving: Ensure that we aren't holding locks when closing them
- 2d10d8df - nonmoving: Make bitmap accesses atomic
- 7570ae43 - nonmoving: Fix benign race in update remembered set check
- b6a3ab00 - nonmoving: Fix race in shortcutting
- 5a403535 - nonmoving: Make free list counter accesses atomic
Toggle commit list-
e090f105...3d55d8ab - 117 commits from branch
assigned to @marge-bot
added backport needed:9.6 label
I will attempt to batch this MR (!9610 (closed))...
Merged in 36c9f23c
Backported to %9.6.1
removed backport needed:9.6 label
added backport needed:9.4 label
mentioned in merge request !10269 (closed)
Backported to %9.4.5 in !10199 (merged)
removed backport needed:9.4 label
Please register or sign in to reply