]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh-118322...
authorNadeshiko Manju <me@manjusaka.me>
Wed, 19 Jun 2024 15:34:39 +0000 (23:34 +0800)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2024 15:34:39 +0000 (23:34 +0800)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2024-06-19-01-58-54.gh-issue-120437.nCkIoI.rst [new file with mode: 0644]
Python/optimizer_bytecodes.c
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 (file)
index 0000000..8923f3f
--- /dev/null
@@ -0,0 +1 @@
+Fix ``_CHECK_STACK_SPACE`` optimization problems introduced in :gh:`118322`.
index 35463f252468033c035cdd3afdd246332a97e816..2ea839f5d6dc9799936431237f59706891bc0dfd 100644 (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;
     }
index 46501862ff2fb374be3665a2d786f14a0e29467e..7274bd2a6fc02b132c639187bca6bd023b4565f7 100644 (file)
             (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;