]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-149590: Remove faulthandler_traverse (GH-150023) (#150037)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 May 2026 23:28:04 +0000 (01:28 +0200)
committerGitHub <noreply@github.com>
Mon, 18 May 2026 23:28:04 +0000 (23:28 +0000)
commitc417fcabfdd56ed3b7e835ea66117a304d128200
tree7dfb390578a93c30b8aeb4fcc6f7227f94f4616c
parent16f8ed5a82961cbfd3f74a529f940527957627f7
[3.15] gh-149590: Remove faulthandler_traverse (GH-150023) (#150037)

gh-149590: Remove faulthandler_traverse (GH-150023)

`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)

Co-authored-by: Armaan Vakharia <43391096+armaan-v924@users.noreply.github.com>
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