René's URL Explorer Experiment


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

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:74c9f17b-56fd-dacc-31a1-2445491baf29
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id937C:1F2F:17A5DED:1F73B32:6B01F799
html-safe-nonce2de621f1582249d1dde4fe8186d1cf1d0dfe859b115a666788f081c7e080cd10
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzdDOjFGMkY6MTdBNURFRDoxRjczQjMyOjZCMDFGNzk5IiwidmlzaXRvcl9pZCI6IjQ5Mzk4MjYzODc4MzUwMjUzMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8a3d639b6be64ec9e48a3ec22d0768d9ab84eb8e6345abc5ea943fc824cdc194
hovercard-subject-tagpull_request:5053224331
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9439/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9439/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9439%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9439%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9439/files
Reloadhttps://github.com/RustPython/RustPython/pull/9439/files
Reloadhttps://github.com/RustPython/RustPython/pull/9439/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowdothttps://github.com/youknowdot
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:youknowdot/free-threading-remaining-batch-315-20261028https://github.com/youknowdot/RustPython/tree/youknowdot/free-threading-remaining-batch-315-20261028
Conversation 6 https://github.com/RustPython/RustPython/pull/9439
Commits 11 https://github.com/RustPython/RustPython/pull/9439/commits
Checks 28 https://github.com/RustPython/RustPython/pull/9439/checks
Files changed https://github.com/RustPython/RustPython/pull/9439/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9439/files
Keep monitoring dispatch and event metadata interpreter-local https://github.com/RustPython/RustPython/pull/9439/files#top
Show all changes 11 commits https://github.com/RustPython/RustPython/pull/9439/files
24f8524 Rebase monitoring and use scope-exit cleanup youknowdot Nov 6, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/24f8524cb69666436b5a2f33e5ec83c9ae0b6e50
8050429 Avoid inactive monitoring dispatch calls and direct-yield prefix scans youknowdot Nov 8, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/8050429f4bd2757239e0262eed8172f25307cbd0
1abd185 Reuse validated yield-from instruction boundaries on generator resume codex Nov 8, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/1abd1850c5624b39fdcff1650be5d808bd98eeab
a8b420a Cache monitoring instruction boundaries and coalesce dispatch checks codex Nov 8, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/a8b420a3b331269924c7a6bd10b6b387c8eafb78
2f28bdd Clarify registry snapshot ownership across exception loads codex Nov 8, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/2f28bdded666541dcf44c407165ead6313a9530b
0feed07 Make conditional test modules explicit for Clippy codex Nov 8, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/0feed079ed369bc15817d1b05738068a409063bf
3de1136 Preserve native profile events in observed dispatch youknowdot Nov 10, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/3de113648a5f66905958325d0354b4e3eecc1cf9
2ddfd36 Keep tiny stack and inline-cache helpers in the dispatch loop codex Nov 13, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/2ddfd368bd3635fb03334282c684a567719a960d
2378542 Move the final code fixture into the replacement boundary test codex Nov 14, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/23785424247653b84012091fea1a0e4fbddd34f3
385ddd4 Keep threading-only atomic import conditional after rebase youknowdot Nov 17, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/385ddd4225fef9a4c957cb2d8ba8cd06b855b5b9
899df10 Remove obsolete OnceCell import after monitoring rebase codex Nov 17, 2026 https://github.com/RustPython/RustPython/pull/9439/commits/899df10e0bd0417d28ffea65a872f2f3170b136c
Clear filters https://github.com/RustPython/RustPython/pull/9439/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9439/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9439/files
test_monitoring.py https://github.com/RustPython/RustPython/pull/9439/files#diff-66379f5d9924cdb3483a74800b04d35072d925dbcf00c94a5bd36b811a5243ca
bytecode.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
code.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-77c714638c90d3ce93194eec52bdefe7301d53f84d90a45c87289b21a11383f9
frame.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-09150c655df9106b20586b7dfade4f95653d7511e9685ae55442be6c76219d13
frame.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
callable.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-c628df2d1e9da9a44072436e1be957a381d2755ff2456d3474c1eca1debf4ff3
mod.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-63963cad909798a50cceb99c7ed9feecbd540e0e837dd67c98a890647f77308f
monitoring.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-a30fd0fa6c05f223a08e680ecd79472df84b4b165b9a84383696b3708ab15bc8
metadata.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-15e76d43716e10089d8fc42e97483c8947ef52227e037ab2d52180bec214a1b8
tests.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-4566f5be552824aab0a01bd7fb1829e2dd798da7f71a5faf86836860513cc234
interpreter.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
mod.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-fe30ecf7c6b462e46e0874a55a05ea0edba83cefad5ac7a86e7137fa8f86ba74
thread.rs https://github.com/RustPython/RustPython/pull/9439/files#diff-0bfe10fdb30f1f6c60e31b36e738b86cd68863aeb8113c4c1eadec33e90caf8d
stdlib_sys.py https://github.com/RustPython/RustPython/pull/9439/files#diff-fd9bcddc1221ad047d9d5280805f530b9186fcc9e293c80fbc1f4a69f99bc976
Lib/test/test_free_threading/test_monitoring.pyhttps://github.com/RustPython/RustPython/pull/9439/files#diff-66379f5d9924cdb3483a74800b04d35072d925dbcf00c94a5bd36b811a5243ca
View file https://github.com/RustPython/RustPython/blob/899df10e0bd0417d28ffea65a872f2f3170b136c/Lib/test/test_free_threading/test_monitoring.py
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9439/files
crates/compiler-core/src/bytecode.rshttps://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
View file https://github.com/RustPython/RustPython/blob/899df10e0bd0417d28ffea65a872f2f3170b136c/crates/compiler-core/src/bytecode.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9439/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
https://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
https://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
https://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
https://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
https://github.com/RustPython/RustPython/pull/9439/files#diff-14e38729fc9f6fc42fa6a3125689aa0034480a2cf3ebd59f1c4d1f40fdcd36a0
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9439/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9439/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.