summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-06 09:15:09 (GMT)
committerGitHub <noreply@github.com>2023-06-06 09:15:09 (GMT)
commit92022d8416d9e175800b65c4d71d4e4fb47adcb0 (patch)
tree04dfc2a3c2dbd93ecacb8f4c1cf76d97a3592d50 /PC
parentbae415ad02c79cf3a2eec4aa6969221a12e6716f (diff)
downloadcpython-92022d8416d9e175800b65c4d71d4e4fb47adcb0.zip
cpython-92022d8416d9e175800b65c4d71d4e4fb47adcb0.tar.gz
cpython-92022d8416d9e175800b65c4d71d4e4fb47adcb0.tar.bz2
gh-102304: Fix Py_INCREF() stable ABI in debug mode (#104763)
When Python is built in debug mode (if the Py_REF_DEBUG macro is defined), the Py_INCREF() and Py_DECREF() function are now always implemented as opaque functions to avoid leaking implementation details like the "_Py_RefTotal" variable or the _Py_DecRefTotal_DO_NOT_USE_THIS() function. * Remove _Py_IncRefTotal_DO_NOT_USE_THIS() and _Py_DecRefTotal_DO_NOT_USE_THIS() from the stable ABI. * Remove _Py_NegativeRefcount() from limited C API.
Diffstat (limited to 'PC')
-rwxr-xr-xPC/python3dll.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c
index 5665d55..505feef 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -17,9 +17,7 @@ EXPORT_FUNC(_Py_BuildValue_SizeT)
EXPORT_FUNC(_Py_CheckRecursiveCall)
EXPORT_FUNC(_Py_Dealloc)
EXPORT_FUNC(_Py_DecRef)
-EXPORT_FUNC(_Py_DecRefTotal_DO_NOT_USE_THIS)
EXPORT_FUNC(_Py_IncRef)
-EXPORT_FUNC(_Py_IncRefTotal_DO_NOT_USE_THIS)
EXPORT_FUNC(_Py_NegativeRefcount)
EXPORT_FUNC(_Py_VaBuildValue_SizeT)
EXPORT_FUNC(_PyArg_Parse_SizeT)