Movatterモバイル変換
[0]ホーム
------------------------------------------------------------------------------- |-- 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---- Memory-related system things.-------------------------------------------------------------------------------{-# LANGUAGE Trustworthy #-}-- allocation counter stuff is safe, but GHC.Conc.Sync is UnsafemoduleSystem.Mem(-- * Garbage collectionperformGC,performMajorGC,performMinorGC-- * Allocation counter and limits,setAllocationCounter,getAllocationCounter,enableAllocationLimit,disableAllocationLimit)whereimportGHC.Conc.Sync-- | Triggers an immediate major garbage collection.performGC::IO()performGC=performMajorGC-- | Triggers an immediate major garbage collection.---- @since 4.7.0.0foreignimportccall"performMajorGC"performMajorGC::IO()-- | Triggers an immediate minor garbage collection.---- @since 4.7.0.0foreignimportccall"performGC"performMinorGC::IO()
[8]ページ先頭