Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commented Oct 23, 2025

The make_gen() function creates and tracks generator/coro objects, but
doesn't fully initialize all the fields. At a minimum, we need to
initialize all the fields that may be accessed by gen_traverse because
the call to compute_cr_origin() can trigger a GC.
(cherry picked from commit 574405c)

Co-authored-by: Sam Gross colesbury@gmail.com

…pythongh-140470) The `make_gen()` function creates and tracks generator/coro objects, but doesn't fully initialize all the fields. At a minimum, we need to initialize all the fields that may be accessed by gen_traverse because the call to `compute_cr_origin()` can trigger a GC. (cherry picked from commit 574405c) Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesburycolesbury enabled auto-merge (squash) October 23, 2025 14:19
@colesburycolesbury merged commit 3944e9b into python:3.14Oct 23, 2025
48 checks passed
@miss-islingtonmiss-islington deleted the backport-574405c-3.14 branch January 2, 2026 17:59
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@miss-islington@colesbury