The function returns the previous settings of
minimum-for-sweep
,
maximum-overflow
and
minimum-overflow
. (see set-gc-parameters for details of these.)
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.