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

*sg-default-size* Variable

Summary

Default initial size of a stack group.

Package

system

Initial Value

See below.

Description

The value of the variable *sg-default-size* is the initial size of a stack group, in 32 bit words (in 32-bit implementations) or in 64 bit words (in 64-bit implementations).

*sg-default-size* can be bound around a call to a process creation function. Note that setting the global value of this variable affects the size of all system processes too, so this is not recommended.

The initial value varies:

Examples

To create a process with a stack of 32000 words:

(let ((sys:*sg-default-size* 32000))
  (mp:process-run-function "Larger stack" '()
     #'(lambda () 
         (print (hcl:current-stack-length)))))
See also

current-stack-length
*stack-overflow-behaviour*


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