Skip to main content

set_parse_stack_budget

Function set_parse_stack_budget 

Source
pub fn set_parse_stack_budget(bytes: Option<usize>)
Expand description

Tell the reader how much stack this thread has, so its depth guard fires before the stack does at any build profile (gh#986). Call it first thing on a thread created with an explicit stack size (the CLI’s main thread, the Python worker); None clears it.