gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh-118322 (GH-120712)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
This commit is contained in:
Nadeshiko Manju 2024-06-19 23:34:39 +08:00 committed by GitHub
parent ace2045ea6
commit f385d99f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 2 deletions

View File

@ -0,0 +1 @@
Fix ``_CHECK_STACK_SPACE`` optimization problems introduced in :gh:`118322`.

View File

@ -601,7 +601,6 @@ dummy_func(void) {
(void)callable; (void)callable;
(void)self_or_null; (void)self_or_null;
(void)args; (void)args;
first_valid_check_stack = NULL;
new_frame = NULL; new_frame = NULL;
ctx->done = true; ctx->done = true;
} }

View File

@ -1492,7 +1492,6 @@
(void)callable; (void)callable;
(void)self_or_null; (void)self_or_null;
(void)args; (void)args;
first_valid_check_stack = NULL;
new_frame = NULL; new_frame = NULL;
ctx->done = true; ctx->done = true;
stack_pointer[-2 - oparg] = (_Py_UopsSymbol *)new_frame; stack_pointer[-2 - oparg] = (_Py_UopsSymbol *)new_frame;