mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Lower recursion limit on debug builds
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -197,7 +197,7 @@ impl VirtualMachine {
|
||||
use_tracing: RefCell::new(false),
|
||||
signal_handlers,
|
||||
settings,
|
||||
recursion_limit: Cell::new(512),
|
||||
recursion_limit: Cell::new(if cfg!(debug_assertions) { 256 } else { 512 }),
|
||||
codec_registry: RefCell::default(),
|
||||
initialized: false,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user