| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:e400e064-0582-7584-693b-b93f62548534 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94BC:1BB425:17D281E:202BBC8:6A535A58 |
| html-safe-nonce | b32a0fe5651fc1febe4e6ab4f3c8a6c87e4a442a818c0f445f98315212d5903e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEJDOjFCQjQyNToxN0QyODFFOjIwMkJCQzg6NkE1MzVBNTgiLCJ2aXNpdG9yX2lkIjoiMzMxNzI2ODU3NDY3OTI5MjUwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f40fa67715299dc49750bab56080e274a92bdbf796172874b0d822349a43bca7 |
| hovercard-subject-tag | pull_request:610036462 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/25226/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/620d0dc8ebf23c9a526e1d7f0c177bdf9a661618e7afbe37e895123752ccc0dd/python/cpython/pull/25226 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/620d0dc8ebf23c9a526e1d7f0c177bdf9a661618e7afbe37e895123752ccc0dd/python/cpython/pull/25226 |
| og:image:alt | Add threading.Thread._discard_shutdown_lock() method to ensure that the thread state
lock is removed from the _shutdown_locks list when a thread
completes.
Co-authored-by: Victor Stinner vstinner@p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shihai1991 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/25226#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25226 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F25226 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/25226 |
| Reload | https://github.com/python/cpython/pull/25226 |
| Reload | https://github.com/python/cpython/pull/25226 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| 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.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
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 and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| shihai1991 | https://github.com/shihai1991 |
| python:main | https://github.com/python/cpython/tree/main |
| shihai1991:bpo_37788 | https://github.com/shihai1991/cpython/tree/bpo_37788 |
| Conversation | https://github.com/python/cpython/pull/25226 |
| Commits3 (3) | https://github.com/python/cpython/pull/25226/commits |
| Checks | https://github.com/python/cpython/pull/25226/checks |
| Files changed | https://github.com/python/cpython/pull/25226/files |
| bpo-37788: Fix a reference leak if a thread is not joined. | https://github.com/python/cpython/pull/25226#top |
| shihai1991 | https://github.com/shihai1991 |
| python:main | https://github.com/python/cpython/tree/main |
| shihai1991:bpo_37788 | https://github.com/shihai1991/cpython/tree/bpo_37788 |
|
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#issue-851650529 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://bugs.python.org/issue37788 | https://bugs.python.org/issue37788 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
|
| https://github.com/shihai1991 |
| Fix a reference leak if a thread is not joined. | https://github.com/python/cpython/pull/25226/commits/5fdb00d3a5b6b7ef65f181c7e1c142f073138ac4 |
| 5fdb00d | https://github.com/python/cpython/pull/25226/commits/5fdb00d3a5b6b7ef65f181c7e1c142f073138ac4 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://github.com/the-knights-who-say-ni |
|
CLA signed
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#event-4558177667 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#event-4558177825 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-814306350 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| vstinner | https://github.com/vstinner |
| April 6, 2021 18:04 | https://github.com/python/cpython/pull/25226#event-4558316454 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-814329340 |
| @vstinner | https://github.com/vstinner |
| #15228 | https://github.com/python/cpython/pull/15228 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-814334455 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#event-4558378285 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 6, 2021 | https://github.com/python/cpython/pull/25226#event-4558378567 |
| https://github.com/zhangyangyu |
| zhangyangyu | https://github.com/zhangyangyu |
|
Apr 8, 2021
| https://github.com/python/cpython/pull/25226#pullrequestreview-630953906 |
|
View reviewed changes
| https://github.com/python/cpython/pull/25226/files/5fdb00d3a5b6b7ef65f181c7e1c142f073138ac4 |
| Lib/threading.py | https://github.com/python/cpython/pull/25226/files/5fdb00d3a5b6b7ef65f181c7e1c142f073138ac4#diff-b250d3d0e0d909784a67083e9069ce507513a67e8514a011e2f364027e25e0b0 |
| zhangyangyu | https://github.com/zhangyangyu |
| Apr 8, 2021 | https://github.com/python/cpython/pull/25226#discussion_r609261595 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 8, 2021 | https://github.com/python/cpython/pull/25226#discussion_r609309995 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 8, 2021 | https://github.com/python/cpython/pull/25226#discussion_r609585589 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #15228 | https://github.com/python/cpython/pull/15228 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 8, 2021 | https://github.com/python/cpython/pull/25226#event-4569957453 |
|
| https://github.com/shihai1991 |
| add _discard_shutdown_lock() in threading module | https://github.com/python/cpython/pull/25226/commits/213cd7727ac8badd6efc4737baee10c463c530ae |
| 213cd77 | https://github.com/python/cpython/pull/25226/commits/213cd7727ac8badd6efc4737baee10c463c530ae |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 8, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-816099935 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Apr 11, 2021 | https://github.com/python/cpython/pull/25226#event-4578698203 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| force-pushed | https://github.com/python/cpython/compare/036f14b6a42cfc80d4584907c44a135413b440a4..e66be92bcbd82ded03c952bc68af78c19bc9d2f3 |
| 036f14b | https://github.com/python/cpython/commit/036f14b6a42cfc80d4584907c44a135413b440a4 |
| e66be92 | https://github.com/python/cpython/commit/e66be92bcbd82ded03c952bc68af78c19bc9d2f3 |
|
Compare
| https://github.com/python/cpython/compare/036f14b6a42cfc80d4584907c44a135413b440a4..e66be92bcbd82ded03c952bc68af78c19bc9d2f3 |
| April 11, 2021 16:00 | https://github.com/python/cpython/pull/25226#event-4578698552 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 11, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-817331423 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 11, 2021 | https://github.com/python/cpython/pull/25226#event-4578756359 |
|
| https://github.com/shihai1991 |
| Merge remote-tracking branch 'origin/master' into bpo_37788 | https://github.com/python/cpython/pull/25226/commits/f011a5a03dd53ab5121646d978c5cb11be40d0ad |
| f011a5a | https://github.com/python/cpython/pull/25226/commits/f011a5a03dd53ab5121646d978c5cb11be40d0ad |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| force-pushed | https://github.com/python/cpython/compare/e66be92bcbd82ded03c952bc68af78c19bc9d2f3..f011a5a03dd53ab5121646d978c5cb11be40d0ad |
| e66be92 | https://github.com/python/cpython/commit/e66be92bcbd82ded03c952bc68af78c19bc9d2f3 |
| f011a5a | https://github.com/python/cpython/commit/f011a5a03dd53ab5121646d978c5cb11be40d0ad |
|
Compare
| https://github.com/python/cpython/compare/e66be92bcbd82ded03c952bc68af78c19bc9d2f3..f011a5a03dd53ab5121646d978c5cb11be40d0ad |
| April 12, 2021 01:16 | https://github.com/python/cpython/pull/25226#event-4579271551 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 12, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-817567329 |
| #15228 | https://github.com/python/cpython/pull/15228 |
| @pitrou | https://github.com/pitrou |
| @serhiy-storchaka | https://github.com/serhiy-storchaka |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/zhangyangyu |
| zhangyangyu | https://github.com/zhangyangyu |
| pitrou | https://github.com/pitrou |
| April 14, 2021 00:27 | https://github.com/python/cpython/pull/25226#event-4590824594 |
| https://github.com/pitrou |
| pitrou | https://github.com/pitrou |
| Apr 16, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-821284050 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 16, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-821330425 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/pitrou |
| pitrou | https://github.com/pitrou |
| Apr 16, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-821405897 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/pitrou |
| pitrou | https://github.com/pitrou |
| Apr 16, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-821443215 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/pitrou |
| pitrou | https://github.com/pitrou |
| Apr 16, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-821459453 |
| @tim-one | https://github.com/tim-one |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 18, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-822014237 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| Apr 18, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-822020604 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/pitrou |
| pitrou | https://github.com/pitrou |
| Apr 19, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-822343451 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| May 13, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-840300551 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| @pitrou | https://github.com/pitrou |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| May 13, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-840301433 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/shihai1991 |
| shihai1991 | https://github.com/shihai1991 |
| May 13, 2021 | https://github.com/python/cpython/pull/25226#event-4739985053 |
| https://github.com/pitrou |
| pitrou | https://github.com/pitrou |
| May 13, 2021 | https://github.com/python/cpython/pull/25226#issuecomment-840712319 |
| #26103 | https://github.com/python/cpython/pull/26103 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
| https://github.com/pitrou |
| pitrou | https://github.com/pitrou |
|
May 13, 2021
| https://github.com/python/cpython/pull/25226#ref-pullrequest-891226567 |
|
bpo-37788: Fix reference leak when Thread is never joined
#26103
| https://github.com/python/cpython/pull/26103 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25226 |
|
| https://github.com/zhangyangyu |
|
zhangyangyu
| https://github.com/zhangyangyu |
|
| https://github.com/python/cpython/pull/25226/files/5fdb00d3a5b6b7ef65f181c7e1c142f073138ac4 |
|
| https://github.com/vstinner |
|
vstinner
| https://github.com/vstinner |
|
| https://github.com/pitrou |
|
pitrou
| https://github.com/pitrou |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Please reload this page | https://github.com/python/cpython/pull/25226 |
|
| https://github.com/shihai1991 |
|
| https://github.com/pitrou |
|
| https://github.com/zhangyangyu |
|
| https://github.com/the-knights-who-say-ni |
|
| https://github.com/bedevere-bot |
|
| 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 |