LispWorks User Guide and Reference Manual > 32 The HCL Package

NextPrevUpTopContentsIndex

avoid-gc

Function
Summary

Avoids garbage collection if possible in 32-bit LispWorks.

Package

hcl

Signature

avoid-gc => previous-results

Arguments

None.

Values

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

Description

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.

Note: 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


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex