Skip to content

Commit 14d7aa9

Browse files
committed
Isolate GC ownership test from child automatic collection
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
1 parent e7e3dfd commit 14d7aa9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎crates/vm/src/vm/interpreter.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,7 @@ mod tests {
15391539
let sub = main.create_subinterpreter();
15401540

15411541
let sub_scope = sub.enter(|vm| {
1542+
vm.state.gc.disable();
15421543
let scope = vm.new_scope_with_builtins();
15431544
run(vm, &scope, CYCLE);
15441545
assert_eq!(live_nodes(vm), 2);

0 commit comments

Comments
 (0)