Generational GC also supports some additional functions and variables to control it.
This function runs the garbage collector. If
ext:*gc-verbose* is non-
nil, then it invokes
ext:*gc-notify-before* before GC’ing and
Print GC statistics if non-
The number of generations to be collected.
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.