gc

Function

Package: excl

Arguments: &optional mode (error t)

This function can be used to trigger a scavenge or global gc and to toggle some gsgc switches. The behavior depends on the mode argument. Possible values for mode and their effects are shown in the table below.

If mode is not one of the items in the table below, the system signals an error when error is true (the default) or prints a message that the mode is unknown but does not signal an error when error is nil. Thus:

(gc :foo t) -> ERROR: Unknown option to gc: :foo (gc :foo nil)
-> Returns nothing, does nothing, prints: Unknown option to gc:
:foo

See also gc.htm for general information on garbage collection Allegro CL.

Value ofmodeAction
nilPerform a scavenge. This is the default.
tPerform a global garbage collection.
:mark-for-tenureMark all surviving objects so that they are tenured as soon as convenient and perform a scevenge. Some or all of these objects may be tenured during the current scavenge and some (perhaps all) may be tenured during a later scavenge.
:tenurePerform a scavenge and tenure all surviving objects. All will be tenured when the call to gc completes (contrast with :mark-for-tenure, where some surviving objects may not be tenured after the call completes). Note that (gc :tenure) will likely take appreciably more time than (gc :mark-for-tenure).
:showPrint the names and current values of gc switches and parameters. This argument does not trigger a scavenge or global gc.
:roomEquivalent to (room t). This argument does not trigger a scavenge or global gc.
:printToggles whether messages are printed when a gc occurs. This argument does not trigger a scavenge or global gc.
:helpPrints the list of acceptable values for the type argument. This argument does not trigger a scavenge or global gc.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.