We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc2c41 commit e60c802Copy full SHA for e60c802
Include/internal/pycore_runtime_init.h
@@ -39,6 +39,9 @@ extern "C" {
39
.ceval = { \
40
.recursion_limit = Py_DEFAULT_RECURSION_LIMIT, \
41
}, \
42
+ .gc = { \
43
+ .enabled = 1, /* automatic collection enabled? */ \
44
+ }, \
45
._initial_thread = _PyThreadState_INIT, \
46
}
47
Modules/gcmodule.c
@@ -139,8 +139,6 @@ get_gc_state(void)
139
void
140
_PyGC_InitState(GCState *gcstate)
141
{
142
- gcstate->enabled = 1; /* automatic collection enabled? */
143
-
144
#define _GEN_HEAD(n) GEN_HEAD(gcstate, n)
145
struct gc_generation generations[NUM_GENERATIONS] = {
146
/* PyGC_Head, threshold, count */
0 commit comments