summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-05-18 20:56:27 (GMT)
committerGitHub <noreply@github.com>2024-05-18 20:56:27 (GMT)
commitbd1e9509a4475266b21ff432c7875efc289bc0ca (patch)
tree009a185684551fb01157f583008be3a157ddc930 /Misc
parentbb44a827f132e4c2c75cda125bc4741ce5d1440c (diff)
downloadcpython-bd1e9509a4475266b21ff432c7875efc289bc0ca.zip
cpython-bd1e9509a4475266b21ff432c7875efc289bc0ca.tar.gz
cpython-bd1e9509a4475266b21ff432c7875efc289bc0ca.tar.bz2
[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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2024-05-13-16-00-05.gh-issue-118997.GWqWdt.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-05-13-16-00-05.gh-issue-118997.GWqWdt.rst b/Misc/NEWS.d/next/Core and Builtins/2024-05-13-16-00-05.gh-issue-118997.GWqWdt.rst
new file mode 100644
index 0000000..85d6dc8
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2024-05-13-16-00-05.gh-issue-118997.GWqWdt.rst
@@ -0,0 +1,4 @@
+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. Patch by
+Victor Stinner.