[Git][ghc/ghc][ghc-9.12] rts: restore the condition on blackholing originally added in dddf7bea
Magnus pushed to branch ghc-9.12 at Glasgow Haskell Compiler / GHC Commits: 6175b02f by mangoiv at 2026-11-18T14:59:46+01:00 rts: restore the condition on blackholing originally added in dddf7bea dddf7bea and 62f58b9e were applied in the wrong order. Part of the fixes added in dddf7bea were overwritten and thus a condition was missing. This commit restores that behaviour. - - - - - 1 changed file: - rts/ThreadPaused.c Changes: ===================================== rts/ThreadPaused.c ===================================== @@ -341,14 +341,13 @@ threadPaused(Capability *cap, StgTSO *tso) // If we have a frame that is already eagerly blackholed, we // shouldn't overwrite its payload: There may already be a blocking // queue (see #26324). - if(frame_info == &stg_bh_upd_frame_info) { + if(frame_info == &stg_bh_upd_frame_info + || IS_BLACKHOLE_INFO(bh_info)) { // eager black hole: we do nothing // it should be a black hole (but we may not own it, as another // thread could have raced us to claim it) - ASSERT(bh_info == &stg_BLACKHOLE_info || - bh_info == &__stg_EAGER_BLACKHOLE_info || - bh_info == &stg_CAF_BLACKHOLE_info); + ASSERT(IS_BLACKHOLE_INFO(bh_info)); } else { // lazy black hole View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6175b02f759cc93c0c62326df067bb06... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6175b02f759cc93c0c62326df067bb06... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Magnus (@MangoIV)