]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH...
authorMark Shannon <mark@hotpy.org>
Mon, 2 Dec 2024 10:12:17 +0000 (10:12 +0000)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2024 10:12:17 +0000 (10:12 +0000)
commita8dd821d5b25b42c0adeae6642e9b3f9228580f9
treec6f62d9d50569a4dd7aae23db945fc21bfa82e4b
parent2a373da7700cf928e0a5ce3998d19351a3565df4
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.
14 files changed:
Include/cpython/pystats.h
Include/internal/pycore_frame.h
Include/internal/pycore_gc.h
Include/internal/pycore_object.h
Include/internal/pycore_runtime_init.h
InternalDocs/garbage_collector.md
Lib/test/libregrtest/refleak.py
Lib/test/test_gc.py
Misc/NEWS.d/next/Core_and_Builtins/2024-11-21-16-13-52.gh-issue-126491.0YvL94.rst [new file with mode: 0644]
Modules/_testinternalcapi.c
Python/ceval.c
Python/gc.c
Python/specialize.c
Tools/scripts/summarize_stats.py