mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Revert "bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)" (GH-13795)
This reverts commit 396e0a8d9d
.
This commit is contained in:
parent
9535aff942
commit
0fd2c300c2
11 changed files with 103 additions and 99 deletions
|
@ -541,8 +541,7 @@ PyImport_Cleanup(void)
|
|||
_PyGC_CollectNoFail();
|
||||
/* Dump GC stats before it's too late, since it uses the warnings
|
||||
machinery. */
|
||||
_PyRuntimeState *runtime = interp->runtime;
|
||||
_PyGC_DumpShutdownStats(runtime);
|
||||
_PyGC_DumpShutdownStats(&_PyRuntime);
|
||||
|
||||
/* Now, if there are any modules left alive, clear their globals to
|
||||
minimize potential leaks. All C extension modules actually end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue