summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2022-10-27 18:03:10 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-12-22 23:36:10 -0500
commit914f7fe3756734714a6795fc4bbca96442b01f92 (patch)
tree30a5e7d49931a01b0b92f3c87f746db3ccae2ca4 /libraries/ghc-prim
parentfc3a2232da89ed4442b52a99ba1826d04362a7e8 (diff)
downloadhaskell-914f7fe3756734714a6795fc4bbca96442b01f92.tar.gz
Don't consider large byte arrays/compact regions pinned.
Workaround for #22255 which showed how treating large/compact regions as pinned could cause segfaults.
Diffstat (limited to 'libraries/ghc-prim')
-rw-r--r--libraries/ghc-prim/changelog.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/libraries/ghc-prim/changelog.md b/libraries/ghc-prim/changelog.md
index f62aa2474b..0e909da691 100644
--- a/libraries/ghc-prim/changelog.md
+++ b/libraries/ghc-prim/changelog.md
@@ -21,6 +21,13 @@
- The `threadLabel#` primop was added, allowing the user to query the label of
a given `ThreadId#`.
+- `isByteArrayPinned#` now only considers an array pinned if it was explicitly pinned
+ by the user. This is required to avoid ghc issue [#22255](https://gitlab.haskell.org/ghc/ghc/-/issues/22255)
+ which showed that the old behaviour could cause segfaults when used in combination
+ with compact regions.
+ We are working on ways to allow users and library authors to get back the
+ performance benefits of the old behaviour where possible.
+
## 0.9.0 *August 2022*
- Shipped with GHC 9.4.1