]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-149590: Remove faulthandler_traverse (GH-150023) (#150088)
authorArmaan Vakharia <43391096+armaan-v924@users.noreply.github.com>
Tue, 19 May 2026 15:08:58 +0000 (08:08 -0700)
committerGitHub <noreply@github.com>
Tue, 19 May 2026 15:08:58 +0000 (15:08 +0000)
commitfa9773ed9dcc35d49f854e365f7e8bf8452d16e0
treeb004862abd48594eadab5557cc461fdd1a9d67e5
parent1243cd677d7f62b90c50546c5ff27e26ef24ca4f
[3.14] gh-149590: Remove faulthandler_traverse (GH-150023) (#150088)

`faulthandler_traverse` visits Python objects owned by `_PyRuntime`, not
by the module instance. With multi-phase init allowing multiple module
instances, each instance's GC traversal decrements `gc_refs` on the same
runtime-owned objects, driving it negative when two instances are
collected simultaneously.
(cherry picked from commit 56737483c2ffdaadfec648fd38d409c6b10941c0)
Misc/NEWS.d/next/Core_and_Builtins/2026-05-18-13-47-17.gh-issue-149590.IPBeQx.rst [new file with mode: 0644]
Modules/faulthandler.c