Mem.hs 934 Bytes
Newer Older
1
{-# LANGUAGE Safe #-}
2

3
-----------------------------------------------------------------------------
4
-- |
5 6
-- Module      :  System.Mem
-- Copyright   :  (c) The University of Glasgow 2001
7
-- License     :  BSD-style (see the file libraries/base/LICENSE)
8 9 10 11 12 13 14 15 16
-- 
-- Maintainer  :  libraries@haskell.org
-- Stability   :  provisional
-- Portability :  portable
--
-- Memory-related system things.
--
-----------------------------------------------------------------------------

Austin Seipp's avatar
Austin Seipp committed
17 18 19 20 21
module System.Mem
       ( performGC
       , performMajorGC
       , performMinorGC
       ) where
22

Austin Seipp's avatar
Austin Seipp committed
23 24 25 26 27
-- | Triggers an immediate garbage collection.
performGC :: IO ()
performGC = performMajorGC

-- | Triggers an immediate garbage collection.
28 29
--
-- /Since: 4.7.0.0/
Austin Seipp's avatar
Austin Seipp committed
30 31 32
foreign import ccall "performMajorGC" performMajorGC :: IO ()

-- | Triggers an immediate minor garbage collection.
33 34
--
-- /Since: 4.7.0.0/
Austin Seipp's avatar
Austin Seipp committed
35
foreign import ccall "performGC" performMinorGC :: IO ()