Skip to main content

thread_stack_size

Function thread_stack_size 

Source
pub fn thread_stack_size() -> usize
Expand description

Returns the stack size of compiler threads: RUST_MIN_STACK if set, or 16 MiB.

Like rustc, we do not grow the stack manually: deeply nested input recurses deeply, and the OS commits stack pages only when they are used, so a large limit costs nothing until it is needed.