mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Align call-init frame flow and spec cache atomic ordering
This commit is contained in:
1 parent
e19335e8f2
commit
9df4787aed
1 file changed
+2
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user