All Manuals > LispWorks® User Guide and Reference Manual > 37 The HCL Package

collect-generation-2 Function

Summary

Controls whether generation 2 is garbage collected in 32-bit LispWorks.

Package

hcl

Signature

collect-generation-2 on => size

Arguments
on
A generalized boolean.
Values
size
The current size of the image.
Description

The function collect-generation-2 controls whether generation 2 is garbage collected. (Generation 2 normally holds long-lived objects created dynamically.)

If on is nil, generation 2 is not garbage collected. If on is non-nil, the generation is garbage collected.

Notes

collect-generation-2 is implemented only in 32-bit LispWorks. It is not relevant to the Memory Management API in 64-bit implementations, where you can use set-blocking-gen-num instead.

See also

clean-generation-0
collect-highest-generation
expand-generation-1
set-blocking-gen-num
set-promotion-count
11.2 Guidance for control of the memory management system
11.3 Memory Management in 32-bit LispWorks


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35