Skip to content

rts: Simplify atomicModifyMutVar2# implementation

Ben Gamari requested to merge wip/tsan/refactor-atomicModifyMutVar2 into master

Previously we would perform a redundant load in the non-threaded RTS in atomicModifyMutVar2# implementation for the benefit of the non-moving GC's write barrier. Eliminate this.

Also add atomicModifyIORef test which has been quite useful in finding memory ordering issues.

Merge request reports