next up previous contents
Next: MLton.Itimer Up: MLton Previous: MLton.Cont   Contents

MLton.GC

signature MLTON_GC =
   sig
      val collect: unit -> unit
      val setMessages: bool -> unit
      val setSummary: bool -> unit
   end

GC.collect ()

causes a garbage collection to occur.

GC.setMessages

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.

GC.setSummary

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.