mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
gh-81057: Move Globals in Core Code to _PyRuntimeState (gh-99496)
This is the first of several changes to consolidate non-object globals in core code. https://github.com/python/cpython/issues/81057
This commit is contained in:
parent
73943cbc4c
commit
3c57971a2d
17 changed files with 235 additions and 167 deletions
|
@ -2001,7 +2001,7 @@ _PyTypes_FiniTypes(PyInterpreterState *interp)
|
|||
void
|
||||
_Py_NewReference(PyObject *op)
|
||||
{
|
||||
if (_Py_tracemalloc_config.tracing) {
|
||||
if (_PyRuntime.tracemalloc.config.tracing) {
|
||||
_PyTraceMalloc_NewReference(op);
|
||||
}
|
||||
#ifdef Py_REF_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue