NextPrevUpTopContentsIndex

set-memory-check

Function
Summary

Sets a memory check in 64-bit LispWorks.

Package

system

Signature

set-memory-check size function

Arguments

size

An integer.

function

A function designator.

Description

The function set-memory-check sets a memory check.

size must be an integer. It specifies the total size in bytes of the mapped areas of Lisp at which the check is triggered.

function is a function of no arguments.

After each automatic garbage collection (GC) the system checks whether the mapped area (excluding stacks) is larger than size . If it is larger, function is called with no arguments.

Inside the dynamic scope of the call, the check is disabled. There are no restrictions or special considerations on what the function function does.

The current mapped area can be found by the :total-size value returned by room-values.

Note: this function is implemented only in 64-bit LispWorks. It is not relevant to the Memory Management API in 32-bit implementations.

See also

set-memory-exhausted-callback


LispWorks Reference Manual - 12 Mar 2008

NextPrevUpTopContentsIndex