SIGN IN SIGN UP

gh-144054: shutdown fix for deferred ref counting (GH-144055)

When shutting down, disable deferred refcounting for all GC objects. It
is important to do this also for untracked objects, which before this
change were getting missed.

Small code cleanup:
We can remove the shutdown case disable_deferred_refcounting() call
inside scan_heap_visitor() if we are careful about it.  The key is
that frame_disable_deferred_refcounting() might fail if the object
is untracked.
N
Neil Schemenauer committed
795d5c5b44c5ac4b7d1619800f341ec2d0332430
Parent: 31c81ab
Committed by GitHub <noreply@github.com> on 1/20/2026, 1:45:12 PM