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

avoid-gc Function

Summary

Avoids garbage collection if possible in 32-bit LispWorks.

Package

hcl

Signature

avoid-gc => previous-results

Values
previous-results
??.
Description

The function avoid-gc sets various internal parameters so that garbage collection is avoided as far as possible.

This can be useful with non-interactive programs.

If you use avoid-gc, use normal-gc later to reset the parameters to their default settings.

avoid-gc returns the previous settings of minimum-for-sweep, maximum-overflow and minimum-overflow (see set-gc-parameters for details of these).

Notes

avoid-gc is implemented only in 32-bit LispWorks. It is not relevant to the Memory Management API in 64-bit implementations. In 64-bit implementations, you can use set-default-segment-size to increase the default size of segments in the lower generations (typically generations 0 and 1). This will lead to less frequent garbage collections.

See also

gc-if-needed
normal-gc
set-gc-parameters
set-default-segment-size
without-interrupts
11.3 Memory Management in 32-bit LispWorks


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