]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-149590: Remove faulthandler_traverse (GH-150023) (#150087)
authorArmaan Vakharia <43391096+armaan-v924@users.noreply.github.com>
Tue, 19 May 2026 15:04:13 +0000 (08:04 -0700)
committerGitHub <noreply@github.com>
Tue, 19 May 2026 15:04:13 +0000 (15:04 +0000)
commit44f314933cc86a23b07c5e8df95d5ba425103840
tree8bfef4da192c7cc86e3f378fbaacdba35008dcd0
parent8ee6aff14054b37b53e47194a2fa313e98163c94
[3.13] gh-149590: Remove faulthandler_traverse (GH-150023) (#150087)

`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