Title: Keep monitoring dispatch and event metadata interpreter-local by youknowdot · Pull Request #9439 · RustPython/RustPython · GitHub
Open Graph Title: Keep monitoring dispatch and event metadata interpreter-local by youknowdot · Pull Request #9439 · RustPython/RustPython
X Title: Keep monitoring dispatch and event metadata interpreter-local by youknowdot · Pull Request #9439 · RustPython/RustPython
Description: Summary Keep monitoring dispatch and layer state interpreter-local without rewriting shared bytecode into monitoring wrappers. The metadata substrate no longer depends on #9450: use byte-width atomic instruction reads and a bounded base-family walk that skips inline caches, rather than a permanent construction-provenance copy. Remove the new external-bytecode rejection/trust framework and frozen/import fallibility. Preserve existing constructor, code.replace, and marshal admission behavior, ordinary owning-code normalization, and literal GET_ITER construction order. This follows CPython's base-operation/deoptimization conventions, not a claim to port its critical-section or thread-local bytecode machinery. Existing generic internal Clone/cache safety is outside this correction. The current-PC legacy trace path avoids an unnecessary prefix scan; arbitrary-offset metadata lookups remain bounded linear scans. Rebase and cleanup Rebased the final feature delta onto main f1f38c1594. Before cleanup, the rebased tree exactly matched Git's clean merge result. This avoids replaying the discarded intermediate prerequisites. Remove four redundant production tail drops in monitoring state cleanup. Named retired owners still outlive the inner lock scopes. Keep operand releases before fused dispatch, callback destruction before tool-name removal, and the early retired-owner release before metadata construction. Tests are unchanged from the previous feature. Validation on bbfa0c6e7 All 23 compiler-core unit tests passed, including the scalar instruction reader, base-family walker and cache-width tests. Scoped VM strict Clippy passed with compiler, threading, host environment, standard I/O, docs and importlib enabled. Full workspace all-targets strict Clippy passed, excluding the separately configured C-API, WASM and Windows venv launcher crates. Separate C-API all-targets strict Clippy also passed, both with -D warnings. Independent cleanup review and a standalone Rust drop-order comparison passed. Formatting and normal commit hooks passed. Exact-head hosted CI has passed all three OS Rust test jobs and strict Clippy checks, including separate C-API tests and doctests on Linux and macOS. The optimized Linux CPython suite finished successfully: 47,587 tests run, 4,076 existing skips, and 485 modules OK. Its logs explicitly show test_monitoring and test.test_free_threading.test_monitoring passed. The optimized macOS suite also succeeded (47,154 tests run, 4,205 existing skips, 482 modules OK), as did Windows (46,587 filtered tests run, 5,346 existing skips, 467 modules OK). Both monitoring modules passed on every OS. All 24 CI jobs completed successfully; existing platform exclusions and the Windows launcher-version filter remain unchanged. This remains a draft. Earlier runtime evidence Before this rebase, on base b85582d, guarded fixture and CLI builds passed. Eleven selected canonical methods passed on RustPython and pinned CPython 3.15 d220409a, with no skips, failures or expected failures: code replacement, marshal code/filename behavior, coroutine/generator methods, LINE/INSTRUCTION installation order, simple/loop line events and basic legacy tracing. Two valid-input first-read normalization orders also passed in each engine: warm distinct code objects without first reading subject co_code, enable both monitoring events, read normalized bytes, round-trip through replace and marshal, and execute ordinary copies. These are historical results, not runtime validation of the current head. Additional concurrency/GC/stress probes and performance validation remain outstanding. The reviewer's performance-before-merge request remains open; the cleanup does not resolve overall dispatch overhead. No merge-readiness claim. AI assistance: OpenAI Codex assisted source audit, rebase, cleanup, independent review and validation. The exact model version was not exposed.
Open Graph Description: Summary Keep monitoring dispatch and layer state interpreter-local without rewriting shared bytecode into monitoring wrappers. The metadata substrate no longer depends on #9450: use byte-width atom...
X Description: Summary Keep monitoring dispatch and layer state interpreter-local without rewriting shared bytecode into monitoring wrappers. The metadata substrate no longer depends on #9450: use byte-width atom...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9439
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:74c9f17b-56fd-dacc-31a1-2445491baf29 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 937C:1F2F:17A5DED:1F73B32:6B01F799 |
| html-safe-nonce | 2de621f1582249d1dde4fe8186d1cf1d0dfe859b115a666788f081c7e080cd10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzdDOjFGMkY6MTdBNURFRDoxRjczQjMyOjZCMDFGNzk5IiwidmlzaXRvcl9pZCI6IjQ5Mzk4MjYzODc4MzUwMjUzMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8a3d639b6be64ec9e48a3ec22d0768d9ab84eb8e6345abc5ea943fc824cdc194 |
| hovercard-subject-tag | pull_request:5053224331 |
| 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/9439/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 Keep monitoring dispatch and layer state interpreter-local without rewriting shared bytecode into monitoring wrappers. The metadata substrate no longer depends on #9450: use byte-width atom... |
| 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