]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126312: Don't traverse frozen objects on the free-threaded build (GH-126338...
authorPeter Bierma <zintensitydev@gmail.com>
Fri, 15 Nov 2024 13:46:00 +0000 (08:46 -0500)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 13:46:00 +0000 (14:46 +0100)
commitecda3ae2a51cdec65996005690391172bc25ca4b
tree91f9cd11e26af427b4e7723dff81454ab947ba45
parent3227680d2de57a4617a10e6371ec00e62ad9f386
[3.13] gh-126312: Don't traverse frozen objects on the free-threaded build (GH-126338) (#126866)

* Fix merge conflicts.

* [3.13] gh-126312: Don't traverse frozen objects on the free-threaded build (GH-126338)

Also, _PyGC_Freeze() no longer freezes unreachable objects.

(cherry picked from commit d4c72fed8cba8e15ab7bb6c30a92bc9f2c8f0a2c)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
---------

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Lib/test/test_gc.py
Misc/NEWS.d/next/Core_and_Builtins/2024-11-02-14-43-46.gh-issue-126312.LMHzLT.rst [new file with mode: 0644]
Python/gc_free_threading.c