Skip to content

Add System.Mem.performBlockingMajorGC #230

Closed
@TeofilC

Description

@TeofilC

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedApproved by CLC votebase-4.20Implemented in base-4.20 (GHC 9.10)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions