Applies a function to all the live objects in a generation in 64-bit LispWorks.
system
sweep-gen-num-objects gen-num function
gen-num⇩ |
An integer in the inclusive range [0,7]. |
function⇩ |
A designator for a function of one argument, the object. |
The function sweep-gen-num-objects
applies function to all the live objects in the generation gen-num.
function should take one argument, the object. It can allocate, but if it allocates heavily the sweeping becomes unreliable. Small amounts of allocation will normally happen only in generation 0, and so will not affect sweeping of other generations.
sweep-gen-num-objects
is not implemented in 32-bit LispWorks, where you can use sweep-all-objects instead.
sweep-gen-num-objects
does not sweep cons objects in the Mobile GC.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02