https://github.com/python/cpython/commit/f385d99f57773e48285e0bcdbcd66dcbfdc647b3
commit: f385d99f57773e48285e0bcdbcd66dcbfdc647b3
branch: main
author: Nadeshiko Manju <m...@manjusaka.me>
committer: Fidget-Spinner <kenjin4...@gmail.com>
date: 2024-06-19T23:34:39+08:00
summary:

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


Co-authored-by: Ken Jin <kenjin4...@gmail.com>

files:
A Misc/NEWS.d/next/Core and 
Builtins/2024-06-19-01-58-54.gh-issue-120437.nCkIoI.rst
M Python/optimizer_bytecodes.c
M Python/optimizer_cases.c.h

diff --git a/Misc/NEWS.d/next/Core and 
Builtins/2024-06-19-01-58-54.gh-issue-120437.nCkIoI.rst b/Misc/NEWS.d/next/Core 
and Builtins/2024-06-19-01-58-54.gh-issue-120437.nCkIoI.rst
new file mode 100644
index 00000000000000..8923f3fcefe3c1
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and 
Builtins/2024-06-19-01-58-54.gh-issue-120437.nCkIoI.rst 
@@ -0,0 +1 @@
+Fix ``_CHECK_STACK_SPACE`` optimization problems introduced in :gh:`118322`.
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c
index 35463f25246803..2ea839f5d6dc97 100644
--- a/Python/optimizer_bytecodes.c
+++ b/Python/optimizer_bytecodes.c
@@ -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;
     }
diff --git a/Python/optimizer_cases.c.h b/Python/optimizer_cases.c.h
index 46501862ff2fb3..7274bd2a6fc02b 100644
--- a/Python/optimizer_cases.c.h
+++ b/Python/optimizer_cases.c.h
@@ -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;

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to