Title: bpo-37788: fix reference leak caused by threading._shutdown_locks by akruis · Pull Request #15175 · python/cpython · GitHub
Open Graph Title: bpo-37788: fix reference leak caused by threading._shutdown_locks by akruis · Pull Request #15175 · python/cpython
X Title: bpo-37788: fix reference leak caused by threading._shutdown_locks by akruis · Pull Request #15175 · python/cpython
Description: If a program creates non-daemon threads but does not join them, the global set threading._shutdown_locks accumulates the shutdown locks of the threads. This pull request adds a test case for non-daemon threads without join. The test must not leak references, if called with python -m test -R: test_threading. This pull request also fixes the reference leak. The tstate->on_delete-hook now discards per thread shutdown locks from threading._shutdown_locks. https://bugs.python.org/issue37788
Open Graph Description: If a program creates non-daemon threads but does not join them, the global set threading._shutdown_locks accumulates the shutdown locks of the threads. This pull request adds a test case for non-da...
X Description: If a program creates non-daemon threads but does not join them, the global set threading._shutdown_locks accumulates the shutdown locks of the threads. This pull request adds a test case for non-da...
Opengraph URL: https://github.com/python/cpython/pull/15175
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:03a58b39-a7b8-c075-4401-6b3997f81a22 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D740:2987FD:1A37E5A:230319E:6A544A3D |
| html-safe-nonce | 69127fcbb6204ae118b92f4a6c6c829ead036ae926074962abfed486e6c7226b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQwOjI5ODdGRDoxQTM3RTVBOjIzMDMxOUU6NkE1NDRBM0QiLCJ2aXNpdG9yX2lkIjoiMjYwNjMxMTIzOTMyOTI3MDMzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a49f0c8ba9e82488ed0cf4912a38451b50208029d3afca306d533cbb66f9789c |
| hovercard-subject-tag | pull_request:305463167 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/15175/files |
| twitter:image | https://avatars.githubusercontent.com/u/659726?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/659726?s=400&v=4 |
| og:image:alt | If a program creates non-daemon threads but does not join them, the global set threading._shutdown_locks accumulates the shutdown locks of the threads. This pull request adds a test case for non-da... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width