Skip to main content

STACK_RECORD_BUDGET_SLOTS

Constant STACK_RECORD_BUDGET_SLOTS 

Source
pub const STACK_RECORD_BUDGET_SLOTS: u32 = 64;
Expand description

Per-frame stack-record budget (#464 step 2). Counts the number of Value slots a frame may consume from Vm::stack_record_arena before further Op::AllocStackRecord requests fall back to the heap path. 64 slots at the current size_of::<Value>() = 64B gives ~4 KiB per frame, matching the design-doc proposal in docs/design/escape-analysis.md. A handler-shaped function (one outer record of ≤8 fields, plus a handful of small inner records) fits well inside this without growing.