mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-36710: Add runtime variable to Py_FinalizeEx() (GH-12937)
* Add a 'runtime' variable to Py_FinalizeEx() rather than working directly on the global variable _PyRuntime * Add a 'runtime' parameter to _PyGC_Fini(), _PyGILState_Fini() and call_ll_exitfuncs()
This commit is contained in:
parent
70bf713617
commit
8e91c246e4
4 changed files with 29 additions and 24 deletions
|
@ -1865,9 +1865,10 @@ _PyGC_DumpShutdownStats(void)
|
|||
}
|
||||
|
||||
void
|
||||
_PyGC_Fini(void)
|
||||
_PyGC_Fini(_PyRuntimeState *runtime)
|
||||
{
|
||||
Py_CLEAR(_PyRuntime.gc.callbacks);
|
||||
struct _gc_runtime_state *gc = &runtime->gc;
|
||||
Py_CLEAR(gc->callbacks);
|
||||
}
|
||||
|
||||
/* for debugging */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue