diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2019-06-01 03:16:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 03:16:47 (GMT) |
commit | 396e0a8d9dc65453cb9d53500d0a620602656cfe (patch) | |
tree | e960fe3a38051fd3013bae7fd1b788ca94e9aeca /Python/import.c | |
parent | 1c263e39c4ed28225a7dc8ca1f24953225ac48ca (diff) | |
download | cpython-396e0a8d9dc65453cb9d53500d0a620602656cfe.zip cpython-396e0a8d9dc65453cb9d53500d0a620602656cfe.tar.gz cpython-396e0a8d9dc65453cb9d53500d0a620602656cfe.tar.bz2 |
bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)
https://bugs.python.org/issue36818
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index ab7db6b..68d1f40 100644 --- a/Python/import.c +++ b/Python/import.c @@ -541,7 +541,8 @@ PyImport_Cleanup(void) _PyGC_CollectNoFail(); /* Dump GC stats before it's too late, since it uses the warnings machinery. */ - _PyGC_DumpShutdownStats(&_PyRuntime); + _PyRuntimeState *runtime = interp->runtime; + _PyGC_DumpShutdownStats(runtime); /* Now, if there are any modules left alive, clear their globals to minimize potential leaks. All C extension modules actually end |