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

with-heavy-allocation Macro

Summary

Slows up garbage collection during the execution of code that allocates a lot of space.

Package

hcl

Signature

with-heavy-allocation &rest body => result

Arguments
body
The forms for which you want the garbage collector to behave differently from normal.
Values
result
The result of executing body.
Description

The macro with-heavy-allocation is for use with code that allocates a lot of space but is not interactive. It ensures that garbage collection (GC) is carried out less frequently while body are being executed. However, each GC may take longer.

Compatibility notes

In LispWorks 5.0 with-heavy-allocation is implemented only in 32-bit LispWorks. In version 5.1 and later it is implemented in 64-bit LispWorks as well.

See also

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


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