Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-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 [email protected]

…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 <[email protected]>
@colesbury colesbury enabled auto-merge (squash) October 23, 2025 14:19
@colesbury colesbury merged commit 3944e9b into python:3.14 Oct 23, 2025
48 checks passed
Sign up for free to 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