[Git][ghc/ghc][wip/tsan/codegen] tsan_compare_exchange
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Wed Nov 16 17:32:08 UTC 2022
Ben Gamari pushed to branch wip/tsan/codegen at Glasgow Haskell Compiler / GHC
Commits:
a26cbb10 by Ben Gamari at 2022-11-16T12:31:49-05:00
tsan_compare_exchange
- - - - -
1 changed file:
- rts/TSANUtils.c
Changes:
=====================================
rts/TSANUtils.c
=====================================
@@ -1,5 +1,7 @@
#include <Rts.h>
+#if defined(TSAN_ENABLED)
+
uint64_t ghc_tsan_atomic64_compare_exchange(uint64_t *ptr, uint64_t expected, uint64_t new_value, int success_memorder, int failure_memorder)
{
__tsan_atomic64_compare_exchange_strong(
@@ -32,3 +34,4 @@ uint8_t ghc_tsan_atomic8_compare_exchange(uint8_t *ptr, uint8_t expected, uint8_
return expected;
}
+#endif
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a26cbb10d53ccfc5e7c62098a6d5287d3d3bcc45
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a26cbb10d53ccfc5e7c62098a6d5287d3d3bcc45
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/20221116/6318a202/attachment.html>
More information about the ghc-commits
mailing list