diff options
| author | Victor Stinner <vstinner@python.org> | 2023-06-06 09:15:09 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-06 09:15:09 (GMT) |
| commit | 92022d8416d9e175800b65c4d71d4e4fb47adcb0 (patch) | |
| tree | 04dfc2a3c2dbd93ecacb8f4c1cf76d97a3592d50 /Lib/test | |
| parent | bae415ad02c79cf3a2eec4aa6969221a12e6716f (diff) | |
| download | cpython-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 'Lib/test')
| -rw-r--r-- | Lib/test/test_stable_abi_ctypes.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_stable_abi_ctypes.py b/Lib/test/test_stable_abi_ctypes.py index 6898367..8cad71c 100644 --- a/Lib/test/test_stable_abi_ctypes.py +++ b/Lib/test/test_stable_abi_ctypes.py @@ -917,8 +917,6 @@ if feature_macros['PY_HAVE_THREAD_NATIVE_ID']: ) if feature_macros['Py_REF_DEBUG']: SYMBOL_NAMES += ( - '_Py_DecRefTotal_DO_NOT_USE_THIS', - '_Py_IncRefTotal_DO_NOT_USE_THIS', '_Py_NegativeRefcount', '_Py_RefTotal', ) |
