Skip to main content

MAX_FRAMES

Constant MAX_FRAMES 

Source
pub const MAX_FRAMES: usize = 200_000;
Expand description

The frame-count ceiling that backs up DEFAULT_STACK_SIZE.

Chosen so that the byte budget is what actually decides for every ordinary --stack-size (a frame costs a few hundred bytes, so 1 MB buys a few thousand frames and 32 MB buys tens of thousands), while a deliberately huge budget still cannot allocate millions of frames.