[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 15 commits: Implement user-defined allocation limit handlers

Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC Commits: 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 - - - - - 69 changed files: - compiler/GHC/Builtin/primops.txt.pp - compiler/GHC/StgToCmm/Prim.hs - compiler/GHC/StgToJS/Prim.hs - compiler/GHC/Tc/Gen/Splice.hs - compiler/ghc.cabal.in - configure.ac - docs/users_guide/using.rst - libraries/Win32 - libraries/array - libraries/base/base.cabal.in - libraries/base/src/Control/Exception.hs - libraries/binary - libraries/deepseq - libraries/directory - libraries/exceptions - libraries/filepath - libraries/ghc-boot-th/ghc-boot-th.cabal.in - libraries/ghc-boot/ghc-boot.cabal.in - libraries/ghc-compact/GHC/Compact.hs - libraries/ghc-compact/GHC/Compact/Serialized.hs - libraries/ghc-compact/ghc-compact.cabal - libraries/ghc-experimental/ghc-experimental.cabal.in - + libraries/ghc-experimental/src/System/Mem/Experimental.hs - libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc - libraries/ghc-heap/ghc-heap.cabal.in - libraries/ghc-internal/ghc-internal.cabal.in - + libraries/ghc-internal/src/GHC/Internal/AllocationLimitHandler.hs - libraries/ghc-internal/src/GHC/Internal/Exception/Type.hs - libraries/ghc-prim/changelog.md - libraries/ghc-prim/ghc-prim.cabal - libraries/ghci/ghci.cabal.in - libraries/haskeline - libraries/hpc - libraries/os-string - libraries/parsec - libraries/process - libraries/semaphore-compat - libraries/stm - libraries/template-haskell/template-haskell.cabal.in - libraries/terminfo - libraries/text - libraries/unix - rts/Prelude.h - rts/PrimOps.cmm - rts/RtsStartup.c - rts/RtsSymbols.c - rts/Schedule.c - rts/external-symbols.list.in - rts/include/rts/storage/GC.h - rts/include/rts/storage/TSO.h - rts/include/stg/MiscClosures.h - testsuite/tests/backpack/cabal/bkpcabal08/bkpcabal08.stdout - testsuite/tests/interface-stability/base-exports.stdout - testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs - testsuite/tests/interface-stability/base-exports.stdout-mingw32 - testsuite/tests/interface-stability/base-exports.stdout-ws-32 - testsuite/tests/interface-stability/ghc-experimental-exports.stdout - testsuite/tests/interface-stability/ghc-experimental-exports.stdout-mingw32 - testsuite/tests/interface-stability/ghc-prim-exports.stdout - testsuite/tests/interface-stability/ghc-prim-exports.stdout-mingw32 - + testsuite/tests/rts/T22859.hs - + testsuite/tests/rts/T22859.stderr - testsuite/tests/rts/all.T - utils/haddock/haddock-api/haddock-api.cabal - utils/haddock/haddock-api/src/Haddock/InterfaceFile.hs - utils/haddock/haddock-library/haddock-library.cabal - utils/haddock/haddock-test/haddock-test.cabal - utils/haddock/haddock.cabal - utils/hsc2hs The diff was not included because it is too large. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/099bc364e62872ad6e4f3bf61cb99b2... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/099bc364e62872ad6e4f3bf61cb99b2... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)