Skip to main content

CHECK_EVERY

Constant CHECK_EVERY 

Source
pub const CHECK_EVERY: u32 = 64;
Expand description

How many ops run between two checks of the limits, when one is set.

The interpreter checks a deadline and a cancellation token at every host call, every fan-out element’s start and every sweep, and here: at every CHECK_EVERYth op, so a loop of pure built-ins still stops. The number is public so a test can derive where a run stops instead of spelling 63.