Title: Lispworks variable to handle stack size
OS: All Unix platforms
The variable is SYSTEM:*STACK-OVERFLOW-BEHAVIOUR*. Setting it to :WARN will cause the stack to be extended by 50% when it overflows. It should be used with care since the stack will grow indefinitely with repeated overflows.
An alternative is to make a handler for CONDITIONS:STACK-OVERFLOW that invokes the continue restart, only when the current size is less than a given threshold, e.g.
(and (< (lw::current-stack-length) 50000)
|See Also: |
|Summary:Is there a lispworks variable that will increase the process stack size or optionally issue a warning?|