summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-12-02 10:12:17 (GMT)
committerGitHub <noreply@github.com>2024-12-02 10:12:17 (GMT)
commita8dd821d5b25b42c0adeae6642e9b3f9228580f9 (patch)
treec6f62d9d50569a4dd7aae23db945fc21bfa82e4b /Misc
parent2a373da7700cf928e0a5ce3998d19351a3565df4 (diff)
downloadcpython-a8dd821d5b25b42c0adeae6642e9b3f9228580f9.zip
cpython-a8dd821d5b25b42c0adeae6642e9b3f9228580f9.tar.gz
cpython-a8dd821d5b25b42c0adeae6642e9b3f9228580f9.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core_and_Builtins/2024-11-21-16-13-52.gh-issue-126491.0YvL94.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-11-21-16-13-52.gh-issue-126491.0YvL94.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-11-21-16-13-52.gh-issue-126491.0YvL94.rst
new file mode 100644
index 0000000..9ef2b8d
--- /dev/null
+++ b/Misc/NEWS.d/next/Core_and_Builtins/2024-11-21-16-13-52.gh-issue-126491.0YvL94.rst
@@ -0,0 +1,4 @@
+Add a marking phase to the GC. All objects that can be transitively reached
+from builtin modules or the stacks are marked as reachable before cycle
+detection. This reduces the amount of work done by the GC by approximately
+half.