]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-117108: Set the "old space bit" to "visited" for all young objects (#117213)
authorMark Shannon <mark@hotpy.org>
Tue, 26 Mar 2024 11:11:42 +0000 (11:11 +0000)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 11:11:42 +0000 (11:11 +0000)
commit8bef34f625e21886b1c64544c060e19ee2e229bf
treeec99928ad40650b4c5e1c5dbe1bb7e2bd91bddff
parentbf82f77957a31c3731b4ec470c406f5708ca9ba3
GH-117108: Set the "old space bit" to "visited" for all young objects  (#117213)

Change old space bit of young objects from 0 to gcstate->visited_space.
This ensures that any object created *and* collected during cycle GC has the bit set correctly.
Include/internal/pycore_gc.h
Include/internal/pycore_object.h
Lib/test/test_gc.py
Misc/NEWS.d/next/Core and Builtins/2024-03-25-12-51-12.gh-issue-117108.tNqDEo.rst [new file with mode: 0644]
Python/gc.c