LispWorks User Guide and Reference Manual > 40 The SYSTEM Package

NextPrevUpTopContentsIndex

*default-stack-group-list-length*

Variable
Summary

The size of the stack cache.

Package

system

Initial Value

10

Description

This variable determines the maximum size of the stack cache.

Process stacks are cached and reused. When a process dies, its stack is put in the stack cache for future reuse if there are currently less than *default-stack-group-list-length* stacks in the cache. Therefore if your application repeatedly creates and discards more than 10 processes you should consider increasing the value of this variable.

Note that stacks are allocated in generation 2, hence a program with a high turnover of processes may need to call (mark-and-sweep 2) periodically unless all the stacks of dead processes are reused.

The default stack size is 64KB on all 32-bit LispWorks x86 platforms.

See also

mark-and-sweep


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex