-
ea2c6673
by Teo Camarasu at 2025-07-08T13:24:43-04:00
Implement user-defined allocation limit handlers
Allocation Limits allow killing a thread if they allocate more than a
user-specified limit.
We extend this feature to allow more versatile behaviour.
- We allow not killing the thread if the limit is exceeded.
- We allow setting a custom handler to be called when the limit is exceeded.
User-specified allocation limit handlers run in a fresh thread and are passed
the ThreadId of the thread that exceeded its limit.
We introduce utility functions for getting and setting the allocation
limits of other threads, so that users can reset the limit of a thread
from a handler. Both of these are somewhat coarse-grained as we are
unaware of the allocations in the current nursery chunk.
We provide several examples of usages in testsuite/tests/rts/T22859.hs
Resolves #22859
-
03e047f9
by Simon Hengel at 2025-07-08T13:25:25-04:00
Fix typo in using.rst
-
daf7ff35
by Ben Gamari at 2025-07-09T05:14:21-04:00
compiler: Import AnnotationWrapper from ghc-internal
Since `GHC.Desugar` exported from `base` has been deprecated.
-
fa664ac9
by Ben Gamari at 2025-07-09T05:14:21-04:00
ghc-compact: Eliminate dependency on ghc-prim
-
38c0f445
by Ben Gamari at 2025-07-09T05:14:21-04:00
ghc-heap: Eliminate dependency on ghc-prim
-
32c64f22
by Ben Gamari at 2025-07-09T05:14:21-04:00
ghc-heap: Drop redundant import
-
99326770
by Ben Gamari at 2025-07-09T05:14:21-04:00
ghc-prim: Bump version to 0.13.1
There are no interface changes from 0.13.0 but the implementation now
lives in `ghc-internal`.
-
3cfb80c9
by Ben Gamari at 2025-07-09T05:14:21-04:00
template-haskell: Bump version number to 2.24.0.0
Bumps exceptions submodule.
-
da6a5920
by Ben Gamari at 2025-07-09T05:14:21-04:00
Bump GHC version number to 9.14
-
c1212f1c
by Ben Gamari at 2025-07-09T05:14:22-04:00
Bump parsec to 3.1.18.0
Bumps parsec submodule.
-
e0b977cb
by Ben Gamari at 2025-07-09T05:14:22-04:00
unix: Bump to 2.8.7.0
Bumps unix submodule.
-
14b43ded
by Ben Gamari at 2025-07-09T05:14:22-04:00
binary: Bump to 0.8.9.3
Bumps binary submodule.
-
a766d2d6
by Ben Gamari at 2025-07-09T05:14:22-04:00
Win32: Bump to 2.14.2.0
Bumps Win32 submodule.
-
eed4ee83
by Ben Gamari at 2025-07-09T05:14:22-04:00
base: Bump version to 4.22.0
Bumps various submodules.
-
a2f24749
by Rodrigo Mesquita at 2025-07-09T05:14:23-04:00
base: Export displayExceptionWithInfo
This function should be exposed from base following CLC#285
Approved change in CLC#344
Fixes #26058