[Git][ghc/ghc][wip/tsan/codegen] MutVar

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Wed Nov 16 01:27:49 UTC 2022



Ben Gamari pushed to branch wip/tsan/codegen at Glasgow Haskell Compiler / GHC


Commits:
e4b9f92d by Ben Gamari at 2022-11-15T20:27:43-05:00
MutVar

- - - - -


1 changed file:

- rts/PrimOps.cmm


Changes:

=====================================
rts/PrimOps.cmm
=====================================
@@ -829,7 +829,7 @@ stg_atomicModifyMutVarzuzh ( gcptr mv, gcptr f )
     StgThunk_payload(z,0) = f;
 
   retry:
-    x = StgMutVar_var(mv);
+    x = %relaxed StgMutVar_var(mv);
     StgThunk_payload(z,1) = x;
 #if defined(THREADED_RTS)
     (h) = prim %cmpxchgW(mv + SIZEOF_StgHeader + OFFSET_StgMutVar_var, x, z);



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e4b9f92d9aa27033dff4b9ebf10b2583d9826ade

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e4b9f92d9aa27033dff4b9ebf10b2583d9826ade
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221115/d21d036b/attachment.html>


More information about the ghc-commits mailing list