Scieneer Common Lisp 1.3.9 online documentation

ext:generation-gc-size-limit generation[Function]

Return the size limit, in bytes, beyond which garbage collection will not be performed on the given generation. When the garbage collector encounters such a limit it finishes and does not continue with the next generation.

(setf (ext:generation-gc-size-limit generation) limit)[Function]

Set the size limit, in bytes, beyond which garbage collection will not be performed on the given generation. Setting the limit to zero effectively inhibits garbage collection for the generation or older generations. When the limit is the keyword :unlimited the size limit is set to the maximum making it effectively unlimited. This parameter is initially unlimited on all generations, and is saved in a lisp core file and is in effect when restarted.

Setting a generation GC limit is useful when building a large heap of persistent objects, in which case garbage collection will just copy the objects around and this can be very time consuming for a large heap. See also: ext:oldest-generation-to-gc.