diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-11-11 21:24:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 21:24:18 (GMT) |
commit | f531b6879b530515b009ac79767702829848cf07 (patch) | |
tree | bf2fbc70bc62929ec8d8806acd284340d9a1b173 /Python/pylifecycle.c | |
parent | dd36b71fa6164ebba5d94bb4a24eac43b1c54906 (diff) | |
download | cpython-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/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 2 |
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 } |