gh-120321: Make gi_frame_state transitions atomic in FT build (gh-142599)
This makes generator frame state transitions atomic in the free threading build, which avoids segfaults when trying to execute a generator from multiple threads concurrently. There are still a few operations that aren't thread-safe and may crash if performed concurrently on the same generator/coroutine: * Accessing gi_yieldfrom/cr_await/ag_await * Accessing gi_frame/cr_frame/ag_frame * Async generator operations
S
Sam Gross committed
08bc03ff2a5545a165ba57f4ca73b8ff705dc757
Parent: e2a7db7
Committed by GitHub <noreply@github.com>
on 12/19/2025, 7:10:37 PM