SIGN IN SIGN UP

gh-136870: fix data race in `PyThreadState_Clear` on `sys_tracing_threads` (#136951)

In free-threading, multiple threads can be cleared concurrently as such the modifications on `sys_tracing_threads` should be done while holding the profile lock, otherwise it can race with other threads setting up profiling.
K
Kumar Aditya committed
f183996eb77fd2d5662c62667298c292c943ebf5
Parent: 3224429
Committed by GitHub <noreply@github.com> on 7/21/2025, 8:35:25 PM