mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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.
This commit is contained in:
parent
10c8e6af91
commit
9db0324712
3 changed files with 166 additions and 142 deletions
|
|
@ -83,7 +83,7 @@ extern void _PyGILState_Init(
|
|||
PyThreadState *tstate);
|
||||
extern void _PyGILState_Fini(_PyRuntimeState *runtime);
|
||||
|
||||
PyAPI_FUNC(void) _PyGC_DumpShutdownStats(void);
|
||||
PyAPI_FUNC(void) _PyGC_DumpShutdownStats(_PyRuntimeState *runtime);
|
||||
|
||||
PyAPI_FUNC(_PyInitError) _Py_PreInitializeFromCoreConfig(
|
||||
const _PyCoreConfig *coreconfig);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue