Skip to main content

NATIVE_STACK_RED_ZONE

Constant NATIVE_STACK_RED_ZONE 

Source
const NATIVE_STACK_RED_ZONE: usize = _; // 524_288usize
Expand description

Stack one RuntimeNode::build or RuntimeNode::pull level needs below it before the recursion grows its stack.

Both walks recurse once per tree level and a debug build’s frame is large (about 140 KiB for a build level and 80 KiB for a pull level, measured on a 100-term chain), which can abort an 8 MiB runtime worker. There is no depth limit, so the recursion grows its stack instead.