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.
set-memory-check
is implemented only in 64-bit LispWorks. It is not relevant to the Memory Management API in 32-bit implementations.
LispWorks User Guide and Reference Manual - 13 Feb 2015