Name

ext:set-limit — Set a memory or stack limit.

Function

(ext:set-limit concept value)

concept

A symbol.

function

A positive integer.

Description

Changes the different memory and stack limits that condition ECL's behavior. The value to be changed is denoted by the symbol concept, while the value is the new maximum size. The valid symbols and units are listed in Table 5.1.

Note that the limit has to be positive, but it may be smaller than the previous value of the limit. However, if the supplied value is smaller than what ECL is using at the moment, the new value will be silently ignored.

Table 5.1. Customizable memory limits

ConceptUnitsDefaultCommand line
ext:frame-stackNested frames2048--frame-stack
ext:binding-stackBindings8192 
ext:c-stackBytes128 kilobytes--c-stack
ext:heap-sizeBytes256 megabytes--heap-size
ext:lisp-stackBytes32 kilobytes--lisp-stack