[3.13] gh-119258: Backport optimizer frame fixes in GH-119365 (GH-120699)

(cherry picked from commit 55402d3)
This commit is contained in:
Ken Jin 2024-06-20 23:55:20 +08:00 committed by GitHub
parent b8fd80f91b
commit 7c7aa5a99c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 35 deletions

View file

@ -411,7 +411,7 @@ optimize_uops(
if (_Py_uop_abstractcontext_init(ctx) < 0) {
goto out_of_space;
}
_Py_UOpsAbstractFrame *frame = _Py_uop_frame_new(ctx, co, ctx->n_consumed, 0, curr_stacklen);
_Py_UOpsAbstractFrame *frame = _Py_uop_frame_new(ctx, co, curr_stacklen, NULL, 0);
if (frame == NULL) {
return -1;
}