summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-11-20 09:38:34 (GMT)
committerGitHub <noreply@github.com>2019-11-20 09:38:34 (GMT)
commit7eee5beaf87be898a679278c480e8dd0df76d351 (patch)
tree166a22474d2ca9a3eab2cddf5de4fd35715e888f /Include
parentb8462477bfd01ff21461065d5063e6b0238ca809 (diff)
downloadcpython-7eee5beaf87be898a679278c480e8dd0df76d351.zip
cpython-7eee5beaf87be898a679278c480e8dd0df76d351.tar.gz
cpython-7eee5beaf87be898a679278c480e8dd0df76d351.tar.bz2
bpo-38858: Factorize Py_EndInterpreter() code (GH-17273)
* Factorize code in common between Py_FinalizeEx() and Py_EndInterpreter(). * Py_EndInterpreter() now also calls _PyWarnings_Fini(). * Call _PyExc_Fini() and _PyGC_Fini() later in the finalization.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_pylifecycle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h
index f269ffe..b2f2ad8 100644
--- a/Include/internal/pycore_pylifecycle.h
+++ b/Include/internal/pycore_pylifecycle.h
@@ -76,7 +76,7 @@ extern void PyOS_FiniInterrupts(void);
extern void _PyExc_Fini(void);
extern void _PyImport_Fini(void);
extern void _PyImport_Fini2(void);
-extern void _PyGC_Fini(struct pyruntimestate *runtime);
+extern void _PyGC_Fini(PyThreadState *tstate);
extern void _PyType_Fini(void);
extern void _Py_HashRandomization_Fini(void);
extern void _PyUnicode_Fini(void);
@@ -87,7 +87,7 @@ extern void _PyTraceMalloc_Fini(void);
extern void _PyWarnings_Fini(PyInterpreterState *interp);
extern void _PyGILState_Init(PyThreadState *tstate);
-extern void _PyGILState_Fini(struct pyruntimestate *runtime);
+extern void _PyGILState_Fini(PyThreadState *tstate);
PyAPI_FUNC(void) _PyGC_DumpShutdownStats(struct pyruntimestate *runtime);