◐ Shell
clean mode source ↗

gh-118926: Spill deferred references to stack in cases generator by colesbury · Pull Request #122748 · python/cpython

This automatically spills the results from `_PyStackRef_FromPyObjectNew`
to the in-memory stack so that the deferred references are visible to
the GC before we make any possibly escaping call.

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

@colesbury colesbury marked this pull request as ready for review

August 6, 2024 18:58

markshannon

@colesbury

@colesbury

markshannon

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

Aug 22, 2024
python#122748)

This automatically spills the results from `_PyStackRef_FromPyObjectNew`
to the in-memory stack so that the deferred references are visible to
the GC before we make any possibly escaping call.

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