diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-20 11:25:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 11:25:50 (GMT) |
commit | 7247407c35330f3f6292f1d40606b7ba6afd5700 (patch) | |
tree | fa9307b2cdbf41bf30c90daf12c76dd439949cfd /Include/internal/pycore_pystate.h | |
parent | 488d02a24142948bfb1fafd19fa48e61fcbbabc5 (diff) | |
download | cpython-7247407c35330f3f6292f1d40606b7ba6afd5700.zip cpython-7247407c35330f3f6292f1d40606b7ba6afd5700.tar.gz cpython-7247407c35330f3f6292f1d40606b7ba6afd5700.tar.bz2 |
bpo-36854: Move _PyRuntimeState.gc to PyInterpreterState (GH-17287)
* Rename _PyGC_InitializeRuntime() to _PyGC_InitState()
* finalize_interp_clear() now also calls _PyGC_Fini() in
subinterpreters (clear the GC state).
Diffstat (limited to 'Include/internal/pycore_pystate.h')
-rw-r--r-- | Include/internal/pycore_pystate.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index fec64a7..0c3c1e3 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -74,6 +74,8 @@ struct _is { int finalizing; + struct _gc_runtime_state gc; + PyObject *modules; PyObject *modules_by_index; PyObject *sysdict; @@ -130,9 +132,7 @@ struct _is { struct _warnings_runtime_state warnings; PyObject *audit_hooks; -/* - * See bpo-36876: miscellaneous ad hoc statics have been moved here. - */ + struct { struct { int level; @@ -239,7 +239,6 @@ typedef struct pyruntimestate { void (*exitfuncs[NEXITFUNCS])(void); int nexitfuncs; - struct _gc_runtime_state gc; struct _ceval_runtime_state ceval; struct _gilstate_runtime_state gilstate; |