Sets a callback that it is called when 32-bit LispWorks approaches its memory limit.
system
set-approaching-memory-limit-callback callback
callback⇩ |
A function designator. |
The function set-approaching-memory-limit-callback
sets a callback that it is called when 32-bit LispWorks approaches its limit of memory.
The function callback must take two arguments: the size of the image and the margin of growth:
callback size margin
Normally callback should do something to prevent further growth of the image, or at least minimize the damage if LispWorks crashes when it actually reaches its limit (for example by saving data to disk).
callback can prevent an error being signaled by calling cl:continue.
If there is no callback (the default) or callback returns, LispWorks signals an error.
set-approaching-memory-limit-callback
is not relevant to 64-bit LispWorks.
set-approaching-memory-limit-callback
does not return a useful value.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02