Standard ML of New Jersey

The GC signature


signature GC


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


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
Copyright © 1998 Bell Labs, Lucent Technologies