Skip to content

Commit e19335e

Browse files
committed
Tighten CALL_ALLOC_AND_ENTER_INIT stack-space guard
1 parent b3daabf commit e19335e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/vm/src/frame.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4774,9 +4774,6 @@ impl ExecutingFrame<'_> {
47744774
&& let Some(init_func) = cls.get_cached_init_for_specialization(cached_version)
47754775
&& let Some(cls_alloc) = cls.slots.alloc.load()
47764776
{
4777-
// Match CPython's `code->co_framesize + _Py_InitCleanup.co_framesize`
4778-
// shape, using RustPython's datastack-backed frame size
4779-
// equivalent for the extra shim frame.
47804777
let init_cleanup_stack_bytes =
47814778
datastack_frame_size_bytes_for_code(&vm.ctx.init_cleanup_code)
47824779
.expect("_Py_InitCleanup shim is not a generator/coroutine");

0 commit comments

Comments
 (0)