gh-144016: Fix bad stack assert in the JIT optimizer (GH-144019)

This commit is contained in:
Ken Jin 2026-01-24 17:36:40 +08:00 committed by GitHub
parent 4e10fa993a
commit ca99bfdefb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -507,7 +507,7 @@ optimize_uops(
*(ctx->out_buffer.next++) = *this_instr;
}
assert(ctx->frame != NULL);
if (!CURRENT_FRAME_IS_INIT_SHIM()) {
if (!CURRENT_FRAME_IS_INIT_SHIM() && !ctx->done) {
DPRINTF(3, " stack_level %d\n", STACK_LEVEL());
ctx->frame->stack_pointer = stack_pointer;
assert(STACK_LEVEL() >= 0);