Title: Keep `ob_tid`, `ob_ref_local`, and `ob_ref_shared` fields valid across allocations in free-threaded build · Issue #115491 · python/cpython · GitHub
Open Graph Title: Keep `ob_tid`, `ob_ref_local`, and `ob_ref_shared` fields valid across allocations in free-threaded build · Issue #115491 · python/cpython
X Title: Keep `ob_tid`, `ob_ref_local`, and `ob_ref_shared` fields valid across allocations in free-threaded build · Issue #115491 · python/cpython
Description: Feature or enhancement The free-threaded implementation of dict and list try avoid acquiring locks during read operations. To support this, we need to be able to access the reference count fields of Python objects after they are dealloca...
Open Graph Description: Feature or enhancement The free-threaded implementation of dict and list try avoid acquiring locks during read operations. To support this, we need to be able to access the reference count fields o...
X Description: Feature or enhancement The free-threaded implementation of dict and list try avoid acquiring locks during read operations. To support this, we need to be able to access the reference count fields o...
Opengraph URL: https://github.com/python/cpython/issues/115491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Keep `ob_tid`, `ob_ref_local`, and `ob_ref_shared` fields valid across allocations in free-threaded build","articleBody":"# Feature or enhancement\n\nThe free-threaded implementation of dict and list try avoid acquiring locks during read operations. To support this, we need to be able to access the reference count fields of Python objects after they are deallocated (and possibly reallocated). Some of this support is provided by https://github.com/python/cpython/issues/115103. Additionally, we need to ensure that the debug allocators do not overwrite these fields with \"dead\" bytes `0xDD`, which might make the object look \"alive\" by having a non-zero reference count.\n\nWe still would like to overwrite the rest of the allocation (i.e., from `ob_type` onwards) to detect use-after-frees in debug builds.\n\nSee also: https://peps.python.org/pep-0703/#optimistically-avoiding-locking\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-115573\n* gh-115745\n* gh-116153\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2024-02-14T21:32:30Z","url":"https://github.com/python/cpython/issues/115491"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:714e2af5-547e-b8e9-9290-be375c7becc6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B19E:3A73AA:2FCAFED:3CA41AC:6B01FE00 |
| html-safe-nonce | 0d74fdebfec86fa9540dc9c93e27c7bc335a84693a7f63354ce248fe4a3bc2ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTlFOjNBNzNBQToyRkNBRkVEOjNDQTQxQUM6NkIwMUZFMDAiLCJ2aXNpdG9yX2lkIjoiMjYzNzMwMDMzMDMyNDQyNjI0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab3b63b1a943fab07c470a326770f7a6fc776d5783ce65fdc687d8ba2575a27d |
| hovercard-subject-tag | issue:2135238867 |
| 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/115491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5340bfbabd50c8e364bb2223a75f0b16295b7d34dbe94213c81a4e93c41e4463/python/cpython/issues/115491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5340bfbabd50c8e364bb2223a75f0b16295b7d34dbe94213c81a4e93c41e4463/python/cpython/issues/115491 |
| og:image:alt | Feature or enhancement The free-threaded implementation of dict and list try avoid acquiring locks during read operations. To support this, we need to be able to access the reference count fields o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width