| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:31e80f8a-0b14-f0d4-e4ec-7722ecf0ae53 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DBBA:323DD4:26B4F41:34919E1:696ADDCB |
| html-safe-nonce | 97fef6d5f388832a95a8e9d5357684b70aa0969800ad8d7e9c33a81d13dc0d34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkJBOjMyM0RENDoyNkI0RjQxOjM0OTE5RTE6Njk2QUREQ0IiLCJ2aXNpdG9yX2lkIjoiOTE0MDI1OTM2NjI2OTI3OTY5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d5ac69bb86fe2e9946e8f22cf88d7f78fbc6abd743e8511d966a511c280f86bb |
| hovercard-subject-tag | pull_request:2247707781 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/128147/files |
| twitter:image | https://avatars.githubusercontent.com/u/59607654?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/59607654?s=400&v=4 |
| og:image:alt | Changes:
Makes _asyncio.Task and _asyncio.Future thread-safe by adding critical sections
Add assertions to check for thread safety checking locking of object by critical sections in internal funct... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/128147/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128147%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128147%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/128147/files |
| Reload | https://github.com/python/cpython/pull/128147/files |
| Reload | https://github.com/python/cpython/pull/128147/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/128147/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/128147/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| kumaraditya303 | https://github.com/kumaraditya303 |
| python:main | https://github.com/python/cpython/tree/main |
| kumaraditya303:asyncio-tsafe | https://github.com/kumaraditya303/cpython/tree/asyncio-tsafe |
|
Conversation
23
| https://github.com/python/cpython/pull/128147 |
|
Commits
26
| https://github.com/python/cpython/pull/128147/commits |
|
Checks
39
| https://github.com/python/cpython/pull/128147/checks |
|
Files changed
3
| https://github.com/python/cpython/pull/128147/files |
|
gh-128002: fix many thread safety issues in asyncio
| https://github.com/python/cpython/pull/128147/files#top |
|
Show all changes
26 commits
| https://github.com/python/cpython/pull/128147/files |
|
f3642ae
fix thread safety
kumaraditya303 Dec 21, 2024
| https://github.com/python/cpython/pull/128147/commits/f3642ae527734d5bc41ea6f09358562eff5a1fc1 |
|
1f63b9e
keep working
kumaraditya303 Dec 21, 2024
| https://github.com/python/cpython/pull/128147/commits/1f63b9e0c0166f0d21ec7f8256744980301c4422 |
|
26e9932
keep working
kumaraditya303 Dec 21, 2024
| https://github.com/python/cpython/pull/128147/commits/26e9932726b94fc5cd1d4d5817ed5366f220ba23 |
|
4381ae2
fix refcounting
kumaraditya303 Dec 21, 2024
| https://github.com/python/cpython/pull/128147/commits/4381ae26b959ef355e4020fecbd6e47019f4cabe |
|
b972121
fix refcounting
kumaraditya303 Dec 21, 2024
| https://github.com/python/cpython/pull/128147/commits/b97212152e799bc9bcbc1605d91d6da755a68583 |
|
eeb0273
add asserts
kumaraditya303 Dec 21, 2024
| https://github.com/python/cpython/pull/128147/commits/eeb0273aab55308966dddc4aa162fd1731413d45 |
|
fd1b9cd
more asserts
kumaraditya303 Dec 21, 2024
| https://github.com/python/cpython/pull/128147/commits/fd1b9cd16be8f9505dd509bac54a5f05f1ab3d77 |
|
b628463
more asserts
kumaraditya303 Dec 23, 2024
| https://github.com/python/cpython/pull/128147/commits/b62846305cd4e915325c1a70cb9c3082e58628db |
|
501b6bb
Merge branch 'main' of https://github.com/python/cpython into asyncio…
kumaraditya303 Dec 23, 2024
| https://github.com/python/cpython/pull/128147/commits/501b6bb0da5f6d81bcb841b4bd500c33033aedf4 |
|
86448af
fix test
kumaraditya303 Dec 23, 2024
| https://github.com/python/cpython/pull/128147/commits/86448af5e7df6e469929e7b575a8f19e960ad3e8 |
|
303bd9a
Merge branch 'main' of https://github.com/python/cpython into asyncio…
kumaraditya303 Dec 25, 2024
| https://github.com/python/cpython/pull/128147/commits/303bd9ada320acbec5985a5cd26b5a13d6e98e64 |
|
0e4a775
fix crash by using mutex instead of critical_section
kumaraditya303 Dec 25, 2024
| https://github.com/python/cpython/pull/128147/commits/0e4a7755ba21819c63664e258cd228fe23c2f245 |
|
1cb3a6f
fix all_tasks and use critical section as before
kumaraditya303 Dec 31, 2024
| https://github.com/python/cpython/pull/128147/commits/1cb3a6f23e59ee470eaa095b2221b0b28b8dcb1b |
|
195c87d
add supressions
kumaraditya303 Dec 31, 2024
| https://github.com/python/cpython/pull/128147/commits/195c87d32c925785f05c1ad08a5be6d51427283b |
|
49f3393
Merge branch 'main' of https://github.com/python/cpython into asyncio…
kumaraditya303 Dec 31, 2024
| https://github.com/python/cpython/pull/128147/commits/49f339399d71afc25f0e5f9dee0cb3fbb18414ca |
|
847da18
remove suppressions for sockets, it is fixed now
kumaraditya303 Jan 1, 2025
| https://github.com/python/cpython/pull/128147/commits/847da186345d79ed53e97edccf6cadc1409cd849 |
|
41a86a6
merge fixes for socket
kumaraditya303 Jan 1, 2025
| https://github.com/python/cpython/pull/128147/commits/41a86a66d2b326fef12cbeb8497f418cf97c378f |
|
2ff2af4
add link to issue in suppressions
kumaraditya303 Jan 2, 2025
| https://github.com/python/cpython/pull/128147/commits/2ff2af42370c102d9b5586d044e433505d0d125a |
|
5411a44
use list as temp storage for tasks before filtering
kumaraditya303 Jan 2, 2025
| https://github.com/python/cpython/pull/128147/commits/5411a449dec631a9ae199ec7f6065182523b90a4 |
|
1afac5f
fix FutureIter_am_send_lock_held
kumaraditya303 Jan 2, 2025
| https://github.com/python/cpython/pull/128147/commits/1afac5f688105220996f6b039214c0c2d2883efe |
|
606ef5c
make it->future immutable
kumaraditya303 Jan 2, 2025
| https://github.com/python/cpython/pull/128147/commits/606ef5cb785bf4f84d9c92e27ef575670c515aff |
|
f2ea4c6
Merge branch 'main' of https://github.com/python/cpython into asyncio…
kumaraditya303 Jan 3, 2025
| https://github.com/python/cpython/pull/128147/commits/f2ea4c6ab65a5018c0e35a7e012f1913e8e1a760 |
|
8bd0da7
remove unnecessary incref/decref of task
kumaraditya303 Jan 3, 2025
| https://github.com/python/cpython/pull/128147/commits/8bd0da7fa186bbea81e759aad3e364bec3755e01 |
|
5030cc6
remove suppressions
kumaraditya303 Jan 4, 2025
| https://github.com/python/cpython/pull/128147/commits/5030cc6333ef89bdea5db05e59e46fad30cf358d |
|
2676957
fix comment
kumaraditya303 Jan 4, 2025
| https://github.com/python/cpython/pull/128147/commits/26769576794a08d5ddbcea6b6f55ec079f4e48e4 |
|
6e60222
Update Tools/tsan/suppressions_free_threading.txt
kumaraditya303 Jan 4, 2025
| https://github.com/python/cpython/pull/128147/commits/6e60222bed43f94eeb69478c4fcc9fa4f79e0c66 |
|
Clear filters
| https://github.com/python/cpython/pull/128147/files |
| Please reload this page | https://github.com/python/cpython/pull/128147/files |
| Please reload this page | https://github.com/python/cpython/pull/128147/files |
|
test_free_threading.py
| https://github.com/python/cpython/pull/128147/files#diff-b89972b25cde443d8f01dc4e5bed054e3ea65959e5c76372524acc231f6a2da0 |
|
_asynciomodule.c
| https://github.com/python/cpython/pull/128147/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
|
_asynciomodule.c.h
| https://github.com/python/cpython/pull/128147/files#diff-a19e0541aa4b8b56146c5d6e761608df7f2e8afeffaa8c3af930b17f25901a3c |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L370 |
| Lib/test/test_asyncio/test_free_threading.py | https://github.com/python/cpython/pull/128147/files#diff-b89972b25cde443d8f01dc4e5bed054e3ea65959e5c76372524acc231f6a2da0 |
|
View file
| https://github.com/kumaraditya303/cpython/blob/6e60222bed43f94eeb69478c4fcc9fa4f79e0c66/Lib/test/test_asyncio/test_free_threading.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/128147/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/128147/files |
| Please reload this page | https://github.com/python/cpython/pull/128147/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |