[Git][ghc/ghc][wip/tsan/storage] squash: Accept races

Ben Gamari gitlab at gitlab.haskell.org
Thu Sep 17 23:48:49 UTC 2020



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


Commits:
a5c4e8d5 by Ben Gamari at 2020-09-17T19:48:42-04:00
squash: Accept races

- - - - -


1 changed file:

- rts/sm/Storage.c


Changes:

=====================================
rts/sm/Storage.c
=====================================
@@ -1565,6 +1565,7 @@ calcNeeded (bool force_major, memcount *blocks_needed)
 
         // This can race with allocate() and compactAllocateBlockInternal()
         // but only needs to be approximate
+        TSAN_ANNOTATE_BENIGN_RACE(&gen->n_large_blocks, "n_large_blocks");
         blocks += RELAXED_LOAD(&gen->n_large_blocks)
                 + RELAXED_LOAD(&gen->n_compact_blocks);
 



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a5c4e8d5d61d4eff379bf780966c251b779217ac
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/20200917/26d080d1/attachment.html>


More information about the ghc-commits mailing list