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

get-gc-parameters Function

Summary

Returns the current values of various garbage collector parameters in 32-bit LispWorks.

Package

hcl

Signature

get-gc-parameters parameters => values

Arguments
parameters
A keyword representing a single GC parameter. Any other value means all parameters.
Values
values
If parameters specifies a single GC parameter, the value of that parameter is returned. Otherwise values is an alist containing every GC parameter, together with its current value.
Description

The function get-gc-parameters returns the current values of the garbage collector parameters in 32-bit LispWorks specified by parameters. See set-gc-parameters for a full description of these parameters.

With keyword argument, of one of the parameters, the corresponding value is returned.

Notes

get-gc-parameters is implemented only in 32-bit LispWorks. It is not relevant to the Memory Management API in 64-bit implementations.

Examples
CL-USER 1 > (get-gc-parameters :minimum-overflow)
500000
 
CL-USER 2 > (pprint (get-gc-parameters t))
 
((:ENLARGE-BY-SEGMENTS . 10)
 (:MINIMUM-FOR-PROMOTE . 1000)
 (:MAXIMUM-OVERFLOW . 1000000)
 (:MINIMUM-OVERFLOW . 500000)
 (:MINIMUM-BUFFER-SIZE . 200)
 (:NEW-GENERATION-SIZE . 262144)
 (:PROMOTE-MAX-BUFFER . 100000)
 (:PROMOTE-MIN-BUFFER . 200)
 (:MAXIMUM-BUFFER-SIZE . 131072)
 (:MINIMUM-FOR-SWEEP . 8000)
 (:BIG-OBJECT . 131072))
See also

set-gc-parameters
11.3 Memory Management in 32-bit LispWorks


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