summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-11-11 21:24:18 (GMT)
committerGitHub <noreply@github.com>2022-11-11 21:24:18 (GMT)
commitf531b6879b530515b009ac79767702829848cf07 (patch)
treebf2fbc70bc62929ec8d8806acd284340d9a1b173 /Python
parentdd36b71fa6164ebba5d94bb4a24eac43b1c54906 (diff)
downloadcpython-f531b6879b530515b009ac79767702829848cf07.zip
cpython-f531b6879b530515b009ac79767702829848cf07.tar.gz
cpython-f531b6879b530515b009ac79767702829848cf07.tar.bz2
gh-81057: Add PyInterpreterState.static_objects (gh-99397)
As we consolidate global variables, we find some objects that are almost suitable to add to _PyRuntimeState.global_objects, but have some small/sneaky bit of per-interpreter state (e.g. a weakref list). We're adding PyInterpreterState.static_objects so we can move such objects there. (We'll removed the _not_used field once we've added others.) https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Python')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 1351976..3991089 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -1744,7 +1744,7 @@ finalize_interp_types(PyInterpreterState *interp)
_PyUnicode_Fini(interp);
_PyFloat_Fini(interp);
#ifdef Py_DEBUG
- _PyStaticObjects_CheckRefcnt();
+ _PyStaticObjects_CheckRefcnt(interp);
#endif
}