diff options
Diffstat (limited to 'libraries/base/System/Mem.hs')
-rw-r--r-- | libraries/base/System/Mem.hs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libraries/base/System/Mem.hs b/libraries/base/System/Mem.hs index c47a52d2f7..843cf66877 100644 --- a/libraries/base/System/Mem.hs +++ b/libraries/base/System/Mem.hs @@ -3,7 +3,7 @@ -- Module : System.Mem -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) --- +-- -- Maintainer : libraries@haskell.org -- Stability : provisional -- Portability : portable @@ -19,6 +19,7 @@ module System.Mem ( -- * Garbage collection performGC + , performBlockingMajorGC , performMajorGC , performMinorGC @@ -35,6 +36,12 @@ import GHC.Conc.Sync performGC :: IO () performGC = performMajorGC +-- | Triggers an immediate major garbage collection, ensuring that collection +-- finishes before returning. +-- +-- @since 4.16.0.0 +foreign import ccall "performBlockingMajorGC" performBlockingMajorGC :: IO () + -- | Triggers an immediate major garbage collection. -- -- @since 4.7.0.0 |