Title: Get the "Current" Thread State from a Thread-local · Issue #103323 · python/cpython · GitHub
Open Graph Title: Get the "Current" Thread State from a Thread-local · Issue #103323 · python/cpython
X Title: Get the "Current" Thread State from a Thread-local · Issue #103323 · python/cpython
Description: (This is a revival of gh-84702, which @vstinner worked on several years ago.) For a per-interpreter GIL (PEP 684) we need to start storing the "current" thread state in a thread-local variable, rather than _PyRuntime.tstate_current. Ther...
Open Graph Description: (This is a revival of gh-84702, which @vstinner worked on several years ago.) For a per-interpreter GIL (PEP 684) we need to start storing the "current" thread state in a thread-local variable, rat...
X Description: (This is a revival of gh-84702, which @vstinner worked on several years ago.) For a per-interpreter GIL (PEP 684) we need to start storing the "current" thread state in a thread-local var...
Opengraph URL: https://github.com/python/cpython/issues/103323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get the \"Current\" Thread State from a Thread-local","articleBody":"(This is a revival of gh-84702, which @vstinner worked on several years ago.)\r\n\r\nFor a per-interpreter GIL (PEP 684) we need to start storing the \"current\" thread state in a thread-local variable, rather than `_PyRuntime.tstate_current`. There may be other benefits to the approach if we can take advantage of native compiler support (e.g. C11's `__thread_local`).\r\n\r\nAlso see https://discuss.python.org/t/how-to-get-the-current-thread-state/22655.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-103324\n* gh-104171\n* gh-114593\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ericsnowcurrently","@type":"Person","name":"ericsnowcurrently"},"datePublished":"2023-04-06T22:19:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/103323/cpython/issues/103323"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a507f8ab-91bb-f867-8bd8-73736fcd741d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E92C:199660:147413:1CDA3C:696A0E81 |
| html-safe-nonce | 1d74f04fe566f5ac861abfaa09b0d043a87c329264a1f6b4722c0c7fdb1113c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTJDOjE5OTY2MDoxNDc0MTM6MUNEQTNDOjY5NkEwRTgxIiwidmlzaXRvcl9pZCI6IjQwODU1NTAyOTE3OTAxMDY4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c0ae2adc0ada0b5659ad2fd47be3c3d89b0ecfe7522929ecf7690bea9a9432e |
| hovercard-subject-tag | issue:1658115718 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/103323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc566a6cd3627fd4c62e8d79db0e78c919489195830fad00126c63792612d4a5/python/cpython/issues/103323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc566a6cd3627fd4c62e8d79db0e78c919489195830fad00126c63792612d4a5/python/cpython/issues/103323 |
| og:image:alt | (This is a revival of gh-84702, which @vstinner worked on several years ago.) For a per-interpreter GIL (PEP 684) we need to start storing the "current" thread state in a thread-local variable, rat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericsnowcurrently |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width