mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -123,9 +123,9 @@ def runtest_refleak(test_name, test_func,
|
|||
xml_filename = 'refleak-xml.tmp'
|
||||
result = None
|
||||
dash_R_cleanup(fs, ps, pic, zdc, abcs)
|
||||
support.gc_collect()
|
||||
|
||||
for i in rep_range:
|
||||
support.gc_collect()
|
||||
current = refleak_helper._hunting_for_refleaks
|
||||
refleak_helper._hunting_for_refleaks = True
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue