Title: gh-104341: Minor Fixes in the _thread Module by ericsnowcurrently · Pull Request #104595 · python/cpython · GitHub
Open Graph Title: gh-104341: Minor Fixes in the _thread Module by ericsnowcurrently · Pull Request #104595 · python/cpython
X Title: gh-104341: Minor Fixes in the _thread Module by ericsnowcurrently · Pull Request #104595 · python/cpython
Description: This is primarily cleanup in preparation for the fix for gh-104341. However, in the process I found and fixed the following: PyThreadState_Delete() wasn't called at the bottom of thread_PyThread_start_new_thread()` the thread count (PyInterpreterState.threads.count) wasn't getting reset after fork the PyInterpreterState.threads.count field was effectively leaking the state of the threading module out into the broader runtime in thread_run(), the bootstate variable wasn't freed if its a daemon thread that exits early (due to interp finalizing) other observations: unlike with bootstate, there isn't much we can do about leaking the func/args/kwargs objects in the similar case in threading._after_fork(), we update thread._ident but don't update thread._native_id
Open Graph Description: This is primarily cleanup in preparation for the fix for gh-104341. However, in the process I found and fixed the following: PyThreadState_Delete() wasn't called at the bottom of thread_PyThr...
X Description: This is primarily cleanup in preparation for the fix for gh-104341. However, in the process I found and fixed the following: PyThreadState_Delete() wasn't called at the bottom of thread_P...
Opengraph URL: https://github.com/python/cpython/pull/104595
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:7bc9430a-0c48-8895-c393-2289c8025fcf |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | BCD4:28DD5C:121F89E:1854F7D:69699A0D |
| html-safe-nonce | d84bb0055e43c453f9f9dd2a402460e19e2437fe01ba9b0eccbca4e31ed183a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Q0OjI4REQ1QzoxMjFGODlFOjE4NTRGN0Q6Njk2OTlBMEQiLCJ2aXNpdG9yX2lkIjoiNjI2ODU3ODQyODk2OTY1NDc5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 67f8f5bee812032efe9e103b169821725867808fd30d9ffa8ff7de5ff97d824d |
| hovercard-subject-tag | pull_request:1354995651 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/104595/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| og:image:alt | This is primarily cleanup in preparation for the fix for gh-104341. However, in the process I found and fixed the following: PyThreadState_Delete() wasn't called at the bottom of thread_PyThr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width