From 9df4787aedabfa80a085bcc0c39051ff556f8795 Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" Date: Sun, 8 Mar 2026 23:09:00 +0900 Subject: [PATCH] Align call-init frame flow and spec cache atomic ordering --- crates/vm/src/frame.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/vm/src/frame.rs b/crates/vm/src/frame.rs index 25b07eaa0..af224aa6e 100644 --- a/crates/vm/src/frame.rs +++ b/crates/vm/src/frame.rs @@ -4784,9 +4784,8 @@ impl ExecutingFrame<'_> { ) { return self.execute_call_vectorcall(nargs, vm); } - // CPython creates `_Py_InitCleanup` + `__init__` frames here. - // Keep the guard conservative and deopt when the effective - // recursion budget for those two frames is not available. + // Two frames are created: `_Py_InitCleanup` + `__init__`. + // Guard recursion limit accordingly and fall back. if self.specialization_call_recursion_guard_with_extra_frames(vm, 1) { return self.execute_call_vectorcall(nargs, vm); }