All Manuals > LispWorks User Guide and Reference Manual > 49 The SYSTEM Package

NextPrevUpTopContentsIndex

set-reserved-memory-policy

Function
Summary

Mobile GC only: Tell LispWorks how much reserved memory to try to keep.

Package

system

Signature

set-reserved-memory-policy fixed-size => policy

Arguments

fixed-size

A real or nil.

Values

policy

nil or integer.

Description

The function set-reserved-memory-policy tells LispWorks how much reserved memory to keep.

If fixed-size is not nil, it tells LispWorks that it should keep this number of bytes of reserved memory. The reserved memory is held in segments of fixed size of 8 MB, the actual amount reserved is fixed-size rounded up to the nearest 8 MB. If fixed-size is nil, LispWorks uses the total size of generation 0 plus generation 1 after each GC to compute the size to keep.

LispWorks starts with the setting being nil.

Calling set-reserved-memory-policy does not change the current size of the reserved area. LispWorks only reduces the reserved area after a GC if it is too large. It only increases it, up to the limit, when the GC has copied all objects from a segment.

set-reserved-memory-policy returns the current setting.

See also

Mobile GC technical details


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex