]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-128682: Account for escapes in `DECREF_INPUTS` (GH-129953)
authorMark Shannon <mark@hotpy.org>
Wed, 12 Feb 2025 17:44:59 +0000 (17:44 +0000)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2025 17:44:59 +0000 (17:44 +0000)
commit72f56654d06a6d23c91e892c05f9e4d70009315b
treeb3e989cd2023ddceb9237ce0e1721538dca1d088
parent3e222e3a15959690a41847a1177ac424427815e5
GH-128682: Account for escapes in `DECREF_INPUTS` (GH-129953)

* Handle escapes in DECREF_INPUTS

* Mark a few more functions as escaping

* Replace DECREF_INPUTS with PyStackRef_CLOSE where possible
18 files changed:
Include/internal/pycore_ceval.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_uop_metadata.h
Lib/test/test_generated_cases.py
Misc/NEWS.d/next/Core_and_Builtins/2025-02-10-11-30-13.gh-issue-129953.wipsl_.rst [new file with mode: 0644]
Objects/object.c
Python/bytecodes.c
Python/ceval.c
Python/ceval_macros.h
Python/executor_cases.c.h
Python/gc.c
Python/generated_cases.c.h
Python/optimizer_cases.c.h
Tools/cases_generator/analyzer.py
Tools/cases_generator/cwriter.py
Tools/cases_generator/generators_common.py
Tools/cases_generator/optimizer_generator.py
Tools/cases_generator/stack.py