Skip to content

Commit 94e8d54

Browse files
committed
Align call-init frame flow and spec cache atomic ordering
1 parent 382be9a commit 94e8d54

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/vm/src/frame.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4784,9 +4784,8 @@ impl ExecutingFrame<'_> {
47844784
) {
47854785
return self.execute_call_vectorcall(nargs, vm);
47864786
}
4787-
// CPython creates `_Py_InitCleanup` + `__init__` frames here.
4788-
// Keep the guard conservative and deopt when the effective
4789-
// recursion budget for those two frames is not available.
4787+
// Two frames are created: `_Py_InitCleanup` + `__init__`.
4788+
// Guard recursion limit accordingly and fall back.
47904789
if self.specialization_call_recursion_guard_with_extra_frames(vm, 1) {
47914790
return self.execute_call_vectorcall(nargs, vm);
47924791
}

0 commit comments

Comments
 (0)