signature MLTON_GC =
sig
val collect: unit -> unit
val pack: unit -> unit
val setMessages: bool -> unit
val setSummary: bool -> unit
val unpack: unit -> unit
end
-
collect ()
-
pack ()
-
setMessages b
-
setSummary b
-
unpack ()
-
causes a garbage collection to occur.
-
shrinks the heap as much as possible so that other processes can use available RAM.
-
controls whether diagnostic messages are printed at the beginning and end of each garbage collection. It is the same as the gc-messages runtime system option.
-
controls whether a summary of garbage collection statistics is printed upon termination of the program. It is the same as the gc-summary runtime system option.
-
resizes a packed heap to the size desired by the runtime.