SIGN IN SIGN UP

gh-102304: Move _Py_RefTotal to _PyRuntimeState (gh-102543)

The essentially eliminates the global variable, with the associated benefits. This is also a precursor to isolating this bit of state to PyInterpreterState.

Folks that currently read _Py_RefTotal directly would have to start using _Py_GetGlobalRefTotal() instead.

https://github.com/python/cpython/issues/102304
E
Eric Snow committed
ad77d16a6252c2e616bf41b981a6d919c1122b4d
Parent: 96e05b6
Committed by GitHub <noreply@github.com> on 3/20/2023, 4:03:04 PM