summaryrefslogtreecommitdiff
path: root/testsuite/ghc-config
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2023-01-16 11:46:09 -0500
committerCheng Shao <terrorjack@type.dance>2023-05-08 12:15:19 +0000
commit3e3a6be4023189b2d637beda240e23fa9e856810 (patch)
tree580ce4ea0256d1f892dc04b3194c756810437d4a /testsuite/ghc-config
parent994bda563604461ffb8454d6e298b0310520bcc8 (diff)
downloadhaskell-3e3a6be4023189b2d637beda240e23fa9e856810.tar.gz
rts: Fix data-race in hs_init_ghcwip/T22756
As noticed by @Terrorjack, `hs_init_ghc` previously used non-atomic increment/decrement on the RTS's initialization count. This may go wrong in a multithreaded program which initializes the runtime multiple times. Closes #22756.
Diffstat (limited to 'testsuite/ghc-config')
0 files changed, 0 insertions, 0 deletions