summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-26 00:32:01 (GMT)
committerGitHub <noreply@github.com>2019-04-26 00:32:01 (GMT)
commit9db0324712f6982d89620b420f507a6aa5da152f (patch)
treecf45edb92c5dc5671d9d139c4fc339885d55a91a /Python/import.c
parent10c8e6af910e3a26e59f913a3c1e4830ca71b1af (diff)
downloadcpython-9db0324712f6982d89620b420f507a6aa5da152f.zip
cpython-9db0324712f6982d89620b420f507a6aa5da152f.tar.gz
cpython-9db0324712f6982d89620b420f507a6aa5da152f.tar.bz2
bpo-36710: Add runtime parameter in gcmodule.c (GH-12958)
Add 'state' or 'runtime' parameter to functions in gcmodule.c to avoid to rely directly on the global variable _PyRuntime.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index c00c3aa..3b2090b 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -535,7 +535,7 @@ PyImport_Cleanup(void)
_PyGC_CollectNoFail();
/* Dump GC stats before it's too late, since it uses the warnings
machinery. */
- _PyGC_DumpShutdownStats();
+ _PyGC_DumpShutdownStats(&_PyRuntime);
/* Now, if there are any modules left alive, clear their globals to
minimize potential leaks. All C extension modules actually end