[Git][ghc/ghc][master] rts: only collect live words in nonmoving census when non-concurrent

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Feb 21 10:01:54 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
84357d11 by Teo Camarasu at 2024-02-21T05:01:11-05:00
rts: only collect live words in nonmoving census when non-concurrent

This avoids segfaults when the mutator modifies closures as we examine
them.

Resolves #24393

- - - - -


1 changed file:

- rts/sm/NonMoving.c


Changes:

=====================================
rts/sm/NonMoving.c
=====================================
@@ -1221,7 +1221,8 @@ concurrent_marking:
     traceConcSweepEnd();
 #if defined(DEBUG)
     if (RtsFlags.DebugFlags.nonmoving_gc)
-        nonmovingPrintAllocatorCensus(true);
+        // only collect live words if the mutator isn't running.
+        nonmovingPrintAllocatorCensus(!concurrent);
 #endif
 #if defined(TRACING)
     if (RtsFlags.TraceFlags.nonmoving_gc)



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/84357d1143fe4f9076253160f78fac6c2acc8e5b
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/20240221/9309fb60/attachment.html>


More information about the ghc-commits mailing list