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

NextPrevUpTopContentsIndex

gc-if-needed

Function
Summary

Garbage collects if the previous call requires more space that is actually available in 32-bit LispWorks.

Package

hcl

Signature

gc-if-needed => nil

Arguments

None.

Values

Returns nil.

Description

This function checks to see if the amount of allocation from the previous call is more than system:*allocation-interval*, and if it is, performs a mark and sweep and promotion on generation 0. It also tries to reduce the big-chunk area. This is a fairly brief operation, and can be used whenever some operation is finished and may have left some garbage. The system itself uses it after compiling and loading files, when waiting for input, etc.

Notes

gc-if-needed does nothing in 64-bit LispWorks.

See also

avoid-gc
get-gc-parameters
mark-and-sweep
normal-gc
set-gc-parameters
without-interrupts
with-heavy-allocation
Memory Management in 32-bit LispWorks


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex