8000 bpo-36710: Add runtime parameter in gcmodule.c (GH-12958) · python/cpython@9db0324 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9db0324

Browse files
authored
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.
1 parent 10c8e6a commit 9db0324

File tree

3 files changed

+165
-141
lines changed

3 files changed

+165
-141
lines changed

Include/internal/pycore_pylifecycle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extern void _PyGILState_Init(
8383
PyThreadState *tstate);
8484
extern void _PyGILState_Fini(_PyRuntimeState *runtime);
8585

86-
PyAPI_FUNC(void) _PyGC_DumpShutdownStats(void);
86+
PyAPI_FUNC(void) _PyGC_DumpShutdownStats(_PyRuntimeState *runtime);
8787

8888
PyAPI_FUNC(_PyInitError) _Py_PreInitializeFromCoreConfig(
8989
const _PyCoreConfig *coreconfig);

0 commit comments

Comments
 (0)
0