From 23da4ac248261b9407ad2987913a4c560dbb59ab Mon Sep 17 00:00:00 2001 From: youknowdot Date: Mon, 19 Oct 2026 04:12:21 -0700 Subject: [PATCH] Isolate GC ownership test from child automatic collection (#9196) Disable automatic GC before creating the child cycle so the test measures only whether the parent forced collection can reach child-owned objects. Keep both assertions and the parent collection retry unchanged. Assisted-by: OpenAI Codex:model version unavailable --- crates/vm/src/vm/interpreter.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/vm/src/vm/interpreter.rs b/crates/vm/src/vm/interpreter.rs index 6fa735c16..3eeca7c34 100644 --- a/crates/vm/src/vm/interpreter.rs +++ b/crates/vm/src/vm/interpreter.rs @@ -1539,6 +1539,7 @@ mod tests { let sub = main.create_subinterpreter(); let sub_scope = sub.enter(|vm| { + vm.state.gc.disable(); let scope = vm.new_scope_with_builtins(); run(vm, &scope, CYCLE); assert_eq!(live_nodes(vm), 2);