Skip to content

Commit ee4548c

Browse files
Fix bad stack assert in the JIT optimizer
1 parent 78b1370 commit ee4548c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer_analysis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ optimize_uops(
468468
ctx->out_buffer[ctx->out_len++] = *this_instr;
469469
}
470470
assert(ctx->frame != NULL);
471-
if (!CURRENT_FRAME_IS_INIT_SHIM()) {
471+
if (!CURRENT_FRAME_IS_INIT_SHIM() && !ctx->done) {
472472
DPRINTF(3, " stack_level %d\n", STACK_LEVEL());
473473
ctx->frame->stack_pointer = stack_pointer;
474474
assert(STACK_LEVEL() >= 0);

0 commit comments

Comments
 (0)