]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-118997: Fix _Py_ClearImmortal() assertion (#119001)
authorVictor Stinner <vstinner@python.org>
Sat, 18 May 2024 20:56:27 +0000 (16:56 -0400)
committerGitHub <noreply@github.com>
Sat, 18 May 2024 20:56:27 +0000 (16:56 -0400)
commitbd1e9509a4475266b21ff432c7875efc289bc0ca
tree009a185684551fb01157f583008be3a157ddc930
parentbb44a827f132e4c2c75cda125bc4741ce5d1440c
[3.12] gh-118997: Fix _Py_ClearImmortal() assertion (#119001)

Fix _Py_ClearImmortal() assertion: use _Py_IsImmortal() to tolerate
reference count lower than _Py_IMMORTAL_REFCNT. Fix the assertion for
the stable ABI, when a C extension is built with Python 3.11 or
lower.
Include/internal/pycore_object.h
Misc/NEWS.d/next/Core and Builtins/2024-05-13-16-00-05.gh-issue-118997.GWqWdt.rst [new file with mode: 0644]