mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +00:00
gh-144016: Fix bad stack assert in the JIT optimizer (GH-144019)
This commit is contained in:
parent
4e10fa993a
commit
ca99bfdefb
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user