]> 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, 18 Nov 2024 14:31:26 +0000 (14:31 +0000)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2024 14:31:26 +0000 (14:31 +0000)
commitb0fcc2c47a34a69c35c1a8031cd0589d3747c1af
treeaa9d4bfaf49dca8d3ce47aa18a03cf2d5374a8e2
parenta1d9c8aa800dd7c9eb634f89646be10e9cfc9c8d
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.
21 files changed:
Include/cpython/pystats.h
Include/internal/pycore_dict.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/test_dict.py
Lib/test/test_gc.py
Misc/NEWS.d/next/Core_and_Builtins/2024-11-06-15-22-34.gh-issue-126491.n9VyZc.rst [new file with mode: 0644]
Modules/_testinternalcapi.c
Objects/dictobject.c
Objects/moduleobject.c
Python/bytecodes.c
Python/ceval.c
Python/executor_cases.c.h
Python/gc.c
Python/gc_free_threading.c
Python/generated_cases.c.h
Python/specialize.c
Tools/scripts/summarize_stats.py