]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh...
authorNadeshiko Manju <me@manjusaka.me>
Wed, 19 Jun 2024 17:40:48 +0000 (01:40 +0800)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2024 17:40:48 +0000 (01:40 +0800)
[3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh-118322 (GH-120712)

Signed-off-by: Manjusaka <me@manjusaka.me>
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 928bc03382b8fbcba36c134846ffceae57de977e..2d61fa3b8257f4610129ffda37aab944e2d18890 100644 (file)
@@ -634,7 +634,6 @@ dummy_func(void) {
         (void)callable;
         (void)self_or_null;
         (void)args;
-        first_valid_check_stack = NULL;
         goto done;
     }
 
index 6c2480d4fdfe891e781df49075ba2193bdc3366c..621a48f2fc91058f4dfffe91d75307206b9aefde 100644 (file)
             (void)callable;
             (void)self_or_null;
             (void)args;
-            first_valid_check_stack = NULL;
             goto done;
             stack_pointer[-2 - oparg] = (_Py_UopsSymbol *)new_frame;
             stack_pointer += -1 - oparg;