diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2022-10-27 18:03:10 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-12-22 23:36:10 -0500 |
commit | 914f7fe3756734714a6795fc4bbca96442b01f92 (patch) | |
tree | 30a5e7d49931a01b0b92f3c87f746db3ccae2ca4 /libraries | |
parent | fc3a2232da89ed4442b52a99ba1826d04362a7e8 (diff) | |
download | haskell-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')
-rw-r--r-- | libraries/ghc-prim/changelog.md | 7 |
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 |