-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-120974: Make asyncio swap_current_task
safe in free-threaded build
#122317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-120974: Make asyncio swap_current_task
safe in free-threaded build
#122317
Conversation
…ed build Use a critical section around the modifications to `current_tasks`.
!buildbot nogil refleaks |
🤖 New build scheduled with the buildbot fleet by @colesbury for commit 846f6f8 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Thanks @colesbury for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…ed build (pythonGH-122317) * pythongh-120974: Make asyncio `swap_current_task` safe in free-threaded build (cherry picked from commit b5e6fb3) Co-authored-by: Sam Gross <colesbury@gmail.com>
GH-122612 is a backport of this pull request to the 3.13 branch. |
|
…ed build (python#122317) * pythongh-120974: Make asyncio `swap_current_task` safe in free-threaded build
…ed build (python#122317) * pythongh-120974: Make asyncio `swap_current_task` safe in free-threaded build
Use a critical section around the modifications to
current_tasks
so that the swapping is atomic.asyncio
thread-safety issues in the free-threaded build #120974