Standard ML of New Jersey


The GC signature


Synopsis

signature GC

Interface

val doGC : int -> unit
val messages : bool -> unit

Description

doGC g
Garbage-collect the heap to generation g. doGC(0) does a most-minor-generation collection, doGC(100000) does a most-major-generation collection, making sure to scavenge all garbage. In a typical installation, the highest meaningful argument value is approximately 6.

messages b
turns garbage collection messages on or off, depending on the value of the boolean b. For interactive systems (i.e., those created by exportML), messages are on by default, while messages are off by default for images created by exportFn.

Note that this feature is only available in version 110.0.1, and later.



[ Top | Parent | Contents | Index | Root ]

Last Modified December 13, 1997
Comments to sml-nj@research.bell-labs.com
Copyright © 1998 Bell Labs, Lucent Technologies