shape_vm/constants.rs
1//! VM constants and configuration values
2
3/// Default stack capacity for VM execution
4pub const DEFAULT_STACK_CAPACITY: usize = 1024;
5
6/// Maximum call stack depth
7pub const MAX_CALL_STACK_DEPTH: usize = 10000;
8
9/// Maximum stack size (safety limit)
10pub const MAX_STACK_SIZE: usize = 100_000;
11
12/// Initial capacity for the call stack Vec
13pub const DEFAULT_CALL_STACK_CAPACITY: usize = 64;
14
15/// Default GC trigger threshold (instructions between collections)
16pub const DEFAULT_GC_TRIGGER_THRESHOLD: usize = 1000;