Next: Weak Pointers, Previous: GC Parameters, Up: Garbage Collection [Contents][Index]
Generational GC also supports some additional functions and variables to control it.
:verbose
:gen
:full
¶This function runs the garbage collector. If
ext:*gc-verbose*
is non-nil
, then it invokes
ext:*gc-notify-before*
before GC’ing and
ext:*gc-notify-after*
afterwards.
verbose
Print GC statistics if non-NIL
.
gen
The number of generations to be collected.
full
If non-NIL
, a full collection of all
generations is performed.
Returns statistics about the generation, as multiple values:
Sets the GC trigger value for the specified generation.
Sets the GC trigger age for the specified generation.
Sets the minimum average memory age for the specified generation. If the computed memory age is below this, GC is not performed, which helps prevent a GC when a large number of new live objects have been added in which case a GC would usually be a waste of time.
Next: Weak Pointers, Previous: GC Parameters, Up: Garbage Collection [Contents][Index]