Skip to content

Commit 5e813c5

Browse files
committed
Start with mark phase
1 parent 1fdf00e commit 5e813c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Include/internal/pycore_gc.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,8 @@ struct gc_generation_stats {
303303
};
304304

305305
enum _GCPhase {
306-
GC_PHASE_DONE = 0,
307-
GC_PHASE_MARK = 1,
308-
GC_PHASE_COLLECT = 2
306+
GC_PHASE_MARK = 0,
307+
GC_PHASE_COLLECT = 1
309308
};
310309

311310
struct _gc_runtime_state {

Include/internal/pycore_runtime_init.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ extern PyTypeObject _PyExc_MemoryError;
132132
{ .threshold = 0, }, \
133133
}, \
134134
.work_to_do = -5000, \
135+
.phase = 0, \
135136
}, \
136137
.qsbr = { \
137138
.wr_seq = QSBR_INITIAL, \

0 commit comments

Comments
 (0)