Title: Revalidate dictionary insertion slots after callbacks by youknowdot · Pull Request #9451 · RustPython/RustPython · GitHub
Open Graph Title: Revalidate dictionary insertion slots after callbacks by youknowdot · Pull Request #9451 · RustPython/RustPython
X Title: Revalidate dictionary insertion slots after callbacks by youknowdot · Pull Request #9451 · RustPython/RustPython
Description: Summary Repair dictionary insertion and setdefault slot selection under concurrent table mutation, retaining callback precedence and one-shot preparation. Includes the whole canonical free-threading dict test file. This is a functionality-based extraction from #9439, based on main 84d7afc2d59e05c66c92df3ce0854679d2b32b52. The original aggregate is being narrowed to monitoring. The extracted files are preserved exactly from the reviewed aggregate source. All included Lib files were regenerated with actual scripts/update_lib migrate from CPython d220409a13b77de7a6c30abe16ea90db01528edc and match that pin byte-for-byte. No test file is split across PRs and no assertions or skips are added. Validation and limits Five finite native table-invariant fixtures are assigned to this unit. Earlier aggregate ordinary dict results are historical and do not validate this fresh-main branch. Fresh standalone VM check and strict Clippy (-D warnings) passed with --lib --tests --no-default-features --features compiler,threading,host_env,stdio,doc,importlib on the 84d7 base. A freshly built VM test executable from this worktree passed exactly five existing structural fixtures, one at a time. Source and protected executable hashes were verified; dependencies were locked/offline. No Python concurrency or crash tests were run locally. Exact-head hosted CI: pending. Old aggregate green checks are historical, not standalone validation of this extraction. Summary by CodeRabbit Bug Fixes Improved the reliability of dictionary insertions and default-value operations when the dictionary changes during processing. Existing entries are preserved, and updates correctly account for changes to available slots. Strengthened safeguards around dictionary mutations to help keep contents consistent across insertion and default-value paths.
Open Graph Description: Summary Repair dictionary insertion and setdefault slot selection under concurrent table mutation, retaining callback precedence and one-shot preparation. Includes the whole canonical free-threadin...
X Description: Summary Repair dictionary insertion and setdefault slot selection under concurrent table mutation, retaining callback precedence and one-shot preparation. Includes the whole canonical free-threadin...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9451
X: @github
Domain: github.com
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:879c059c-861f-340c-4c95-a6bd9325f7c9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ECDC:22DB35:3D1FC54:4DEF772:6B01FE28 |
| html-safe-nonce | 458bd40dc9f71b03773a00fe9c7a6714ce5e37e73e0d00dcef5b092305cf05c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0RDOjIyREIzNTozRDFGQzU0OjRERUY3NzI6NkIwMUZFMjgiLCJ2aXNpdG9yX2lkIjoiMjM5MjcyNDU5MDE3OTc3ODA4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3686d9c1b36db44ff3ed28c7470f845025534404498a846dde7ea4c4a729f660 |
| hovercard-subject-tag | pull_request:5060815095 |
| 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/RustPython/RustPython/pull/9451/files |
| twitter:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| og:image:alt | Summary Repair dictionary insertion and setdefault slot selection under concurrent table mutation, retaining callback precedence and one-shot preparation. Includes the whole canonical free-threadin... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width