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

set-default-generation Function

Summary

Set the current generation for memory allocation in 32-bit LispWorks.

Package

hcl

Signature

set-default-generation num => num

Arguments
num⇩
The number of the generation from which to do future allocation.
Values
num
The number of the generation from which to do future allocation.
Description

The function set-default-generation sets the current generation for memory allocation to num. By default the system allocates memory from the youngest generation (generation 0).

Notes

set-default-generation is useful only in 32-bit LispWorks. In 64-bit implementations it does nothing and returns 0.

Examples
(set-default-generation 1)
         ;; allocate from an
         ;; older generation 
(set-default-generation 0)
         ;; return to normal
See also

allocation-in-gen-num
clean-generation-0
collect-generation-2
collect-highest-generation
expand-generation-1
get-default-generation
set-promotion-count
*symbol-alloc-gen-num*
11.3 Memory Management in 32-bit LispWorks


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