Closed
Description
GHC's C RTS interface already exports a performBlockingMajorGC
function. This differs from the standard performMajorGC
in that it will force nonmoving collections to be blocking. Currently the only way to access this is through the C API.
This proposal is to expose this as a Haskell function: System.Mem.performBlockingMajorGC
.
See the GHC MR here: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11693
I tried searching Hackage and there's no mention of performBlockingMajorGC
so it's unlikely that exporting this could break any code.