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

get-maximum-allocated-in-generation-2-after-gc Function

Summary

Mobile GC only: Returns the maximum number of allocated bytes in generation 2 immediately after a GC.

Package

system

Signature

get-maximum-allocated-in-generation-2-after-gc &optional reset-p => other-size-in-bytes, cons-size-in-byte, gen-2-gc-count

Arguments
reset-p
Boolean.
Values
other-size-in-bytes, cons-size-in-byte, gen-2-gc-count
Integers.
Description

The function get-maximum-allocated-in-generation-2-after-gc returns the maximum bytes used by live objects in generation 2 immediately after any of the preceding GCs of generation 2 since the previous "reset" (a call to get-maximum-allocated-in-generation-2-after-gc with reset-p non-nil). It also returns the number of GCs of generation 2 since the previous reset.

other-size-in-bytes is the maximum size of live objects in Other segments (that is not Cons, Large or Static) immediately after any of these GCs, and cons-size-in-byte is the maximum size of live conses.

gen-2-gc-count if the number of GCs of generation 2 that have occurred since the last call with reset-p non-nil.

The values of other-size-in-bytes and cons-size-in-byte match the values that would have been reported for generation 2 by room, if it had been called immediately after a GC of generation 2.

reset-p defaults to nil. When it is non-nil, the maximums and count are reset to 0.

Notes

The purpose of get-maximum-allocated-in-generation-2-after-gc is to give useful information for controlling generation 2, for example to decide what values to use in set-expected-allocation-in-generation-2-after-gc. This function is also useful for just counting the number of GCs of generation 2.

See also

set-expected-allocation-in-generation-2-after-gc
11.5.3.2 Preventing/reducing GC of generation 2


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02