mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
gh-102304: Consolidate Direct Usage of _Py_RefTotal (gh-102514)
This simplifies further changes to _Py_RefTotal (e.g. make it atomic or move it to PyInterpreterState). https://github.com/python/cpython/issues/102304
This commit is contained in:
parent
11a2c6ce51
commit
cbb0aa71d0
10 changed files with 127 additions and 45 deletions
|
|
@ -592,7 +592,7 @@ _PyStructSequence_FiniType(PyTypeObject *type)
|
|||
// Don't use Py_DECREF(): static type must not be deallocated
|
||||
Py_SET_REFCNT(type, 0);
|
||||
#ifdef Py_REF_DEBUG
|
||||
_Py_RefTotal--;
|
||||
_Py_DecRefTotal();
|
||||
#endif
|
||||
|
||||
// Make sure that _PyStructSequence_InitType() will initialize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue