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)self_or_null;
(void)args;
first_valid_check_stack = NULL;
new_frame = NULL;
ctx->done = true;
}

View file

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