gh-117783: Immortalize objects that use deferred reference counting by colesbury · Pull Request #118112 · python/cpython

@colesbury

…ting

Deferred reference counting is not fully implemented yet. As a temporary
measure, we immortalize objects that would use deferred reference
counting to avoid multi-threaded scaling bottlenecks.

This is only performed in the free-threaded build once the first
non-main thread is started. Additionally, some tests, including refleak
tests, suppress this behavior.

@colesbury

@colesbury colesbury marked this pull request as ready for review

April 19, 2024 21:37

DinoV