Title: bpo-40522: _PyThreadState_Swap() sets autoTSSkey by vstinner · Pull Request #19939 · python/cpython · GitHub
Open Graph Title: bpo-40522: _PyThreadState_Swap() sets autoTSSkey by vstinner · Pull Request #19939 · python/cpython
X Title: bpo-40522: _PyThreadState_Swap() sets autoTSSkey by vstinner · Pull Request #19939 · python/cpython
Description: In the experimental isolated subinterpreters build mode, _PyThreadState_GET() gets the autoTSSkey variable and _PyThreadState_Swap() sets the autoTSSkey variable. Add _PyThreadState_GetTSS() _PyRuntimeState_GetThreadState() and _PyThreadState_GET() return _PyThreadState_GetTSS() PyEval_SaveThread() sets the autoTSSkey variable to current Python thread state rather than NULL. eval_frame_handle_pending() doesn't check that _PyThreadState_Swap() result is NULL. _PyThreadState_Swap() gets the current Python thread state with _PyThreadState_GetTSS() rather than _PyRuntimeGILState_GetThreadState(). PyGILState_Ensure() no longer checks _PyEval_ThreadsInitialized() since it cannot access the current interpreter. https://bugs.python.org/issue40522
Open Graph Description: In the experimental isolated subinterpreters build mode, _PyThreadState_GET() gets the autoTSSkey variable and _PyThreadState_Swap() sets the autoTSSkey variable. Add _PyThreadState_GetTSS() _PyRu...
X Description: In the experimental isolated subinterpreters build mode, _PyThreadState_GET() gets the autoTSSkey variable and _PyThreadState_Swap() sets the autoTSSkey variable. Add _PyThreadState_GetTSS() _PyRu...
Opengraph URL: https://github.com/python/cpython/pull/19939
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:1e980973-fa43-ccb6-eb0f-b9d54c5d792c |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B1E4:2B81A2:E0F7C1:1357D44:6969F3DB |
| html-safe-nonce | 5858ac1f2bba8c9fe0bc0ad1eaf0431797fc2c476fb3f69d93036df37a68c5ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUU0OjJCODFBMjpFMEY3QzE6MTM1N0Q0NDo2OTY5RjNEQiIsInZpc2l0b3JfaWQiOiI0MDA0MzU1NzQ0NTAzMjk2OTg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3013da2a44031058b8eb4fdfe664a439c252a92b200ea361d76bc387de6d494a |
| hovercard-subject-tag | pull_request:413649296 |
| 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/19939/checks |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | In the experimental isolated subinterpreters build mode, _PyThreadState_GET() gets the autoTSSkey variable and _PyThreadState_Swap() sets the autoTSSkey variable. Add _PyThreadState_GetTSS() _PyRu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width