Visitar URL original
Keep dev evaluator frames compact during native re-entry · RustPython/RustPython@0d7489c · GitHub
Skip to content

Commit 0d7489c

Browse files
committed
Keep dev evaluator frames compact during native re-entry
Apply the existing test optimization level to rustpython-vm in dev builds. Unoptimized opcode dispatch reserves over 120 KiB per native frame and can exhaust normal stacks during stdlib imports, terminating multiprocessing manager accepter threads in coverage runs. Retain debug assertions, native recursion guards, thread stack settings and all tests. Other workspace crates keep their existing dev profile. Assisted-by: Codex:model-version-unavailable
1 parent dadb59d commit 0d7489c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Cargo.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ required-features = [
9292
[profile.dev.package."*"]
9393
opt-level = 3
9494

95+
# Unoptimized opcode dispatch leaves oversized native frames active during
96+
# imports and callbacks. Keep the evaluator compact without changing dev guards.
97+
[profile.dev.package.rustpython-vm]
98+
opt-level = 3
99+
95100
[profile.test]
96101
opt-level = 3
97102
# https://github.com/rust-lang/rust/issues/92869

0 commit comments

Comments
 (0)