◐ Shell
clean mode source ↗

gh-117139: Garbage collector support for deferred refcounting by colesbury · Pull Request #122956 · python/cpython

* The free-threaded GC now visits interpreter stacks to keep objects
  that use deferred reference counting alive.

* Interpreter frames are zero initialized in the free-threaded GC so
  that the GC doesn't see garbage data. This is a temporary measure
  until stack spilling around escaping calls is implemented.

Co-authored-by: Ken Jin <kenjin@python.org>

@colesbury

kumaraditya303

kumaraditya303

@colesbury

kumaraditya303

blhsing pushed a commit to blhsing/cpython that referenced this pull request

Aug 22, 2024
…ython#122956)

The free-threaded GC now visits interpreter stacks to keep objects
that use deferred reference counting alive.

Interpreter frames are zero initialized in the free-threaded GC so
that the GC doesn't see garbage data. This is a temporary measure
until stack spilling around escaping calls is implemented.

Co-authored-by: Ken Jin <kenjin@python.org>