From b0fcc2c47a34a69c35c1a8031cd0589d3747c1af Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Mon, 18 Nov 2024 14:31:26 +0000 Subject: GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-126502) * Mark almost all reachable objects before doing collection phase * Add stats for objects marked * Visit new frames before each increment * Remove lazy dict tracking * Update docs * Clearer calculation of work to do. --- Include/internal/pycore_runtime_init.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/internal/pycore_runtime_init.h') diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index 8a8f47695fb..ce116ad609b 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -134,6 +134,7 @@ extern PyTypeObject _PyExc_MemoryError; { .threshold = 0, }, \ }, \ .work_to_do = -5000, \ + .phase = GC_PHASE_MARK, \ }, \ .qsbr = { \ .wr_seq = QSBR_INITIAL, \ -- cgit v1.2.3