mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-127110)
* Mark almost all reachable objects before doing collection phase * Add stats for objects marked * Visit new frames before each increment * Update docs * Clearer calculation of work to do.
This commit is contained in:
parent
2a373da770
commit
a8dd821d5b
14 changed files with 365 additions and 113 deletions
|
@ -137,6 +137,7 @@ extern PyTypeObject _PyExc_MemoryError;
|
|||
{ .threshold = 0, }, \
|
||||
}, \
|
||||
.work_to_do = -5000, \
|
||||
.phase = GC_PHASE_MARK, \
|
||||
}, \
|
||||
.qsbr = { \
|
||||
.wr_seq = QSBR_INITIAL, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue