Skip to content

rts: Fix data-race in hs_init_ghc

Ben Gamari requested to merge wip/T22756 into master

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 (closed).

Merge request reports