[Git][ghc/ghc][wip/andreask/pinned] Don't consider large byte arrays pinned by default.

Andreas Klebinger (@AndreasK) gitlab at gitlab.haskell.org
Fri Nov 18 12:18:35 UTC 2022



Andreas Klebinger pushed to branch wip/andreask/pinned at Glasgow Haskell Compiler / GHC


Commits:
b0c2f586 by Andreas Klebinger at 2022-11-18T13:16:21+01:00
Don't consider large byte arrays pinned by default.

- - - - -


1 changed file:

- rts/PrimOps.cmm


Changes:

=====================================
rts/PrimOps.cmm
=====================================
@@ -155,7 +155,10 @@ stg_isByteArrayPinnedzh ( gcptr ba )
     // See the comment in Storage.c:allocatePinned.
     // We also consider BF_COMPACT objects to be immovable. See #14900.
     flags = TO_W_(bdescr_flags(bd));
-    return (flags & (BF_PINNED | BF_LARGE | BF_COMPACT) != 0);
+
+    // We used to also consider BF_LARGE pinned, but stopped doing so
+    // because it interacted badly with compact regions. See #22255
+    return (flags & (BF_PINNED | BF_COMPACT) != 0);
 }
 
 stg_isMutableByteArrayPinnedzh ( gcptr mba )



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b0c2f586d6fd4e70e4ce7282fb6a07809f501b2c
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/20221118/387df552/attachment.html>


More information about the ghc-commits mailing list