René's URL Explorer Experiment


Title: Address slot members by byte offset by youknowone · Pull Request #8811 · RustPython/RustPython · GitHub

Open Graph Title: Address slot members by byte offset by youknowone · Pull Request #8811 · RustPython/RustPython

X Title: Address slot members by byte offset by youknowone · Pull Request #8811 · RustPython/RustPython

Description: Closes #xxxx One of checkbox below must be checked. I did not use AI to write the code of this patch. This PR follows our AI policy Summary Follow-up to #8804. A value stored in a slot is not marked published, so it can return to the freelist. With threading, only the value that leaves the slot is marked, so its free waits out a reader that already loaded the pointer. Without threading, a slot read is one incref. Member cells sit in the object allocation ahead of the extension header, instead of a boxed slice. A slot member's offset is the byte distance from the object to that cell. Specialized loads and stores use the address. A relative C offset is resolved by adding the object header and the type's basic size. — commented by Grok 4.7 Summary by CodeRabbit New Features Added support for relative offsets when defining extension object members, allowing member locations to be specified relative to the object layout. Bug Fixes Improved access to __slots__ attributes, including on objects that support weak references and when slots are located before extension data. Improved slot-reference handling during garbage collection and in threaded builds, helping ensure slot values are accessed and managed correctly.

Open Graph Description: Closes #xxxx One of checkbox below must be checked. I did not use AI to write the code of this patch. This PR follows our AI policy Summary Follow-up to #8804. A value stored in a slot is not...

X Description: Closes #xxxx One of checkbox below must be checked. I did not use AI to write the code of this patch. This PR follows our AI policy Summary Follow-up to #8804. A value stored in a slot is not...

Opengraph URL: https://github.com/RustPython/RustPython/pull/8811

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:7b30a833-0b91-b90e-1cb6-d31f6a1f009f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5BE:158DF1:1C107E4:24FF7BC:6B02202C
html-safe-noncea954c8ed10e44ff9edb743c33745c9198ff1b0af58014f8c0d8c38cdbebc2fcc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUJFOjE1OERGMToxQzEwN0U0OjI0RkY3QkM6NkIwMjIwMkMiLCJ2aXNpdG9yX2lkIjoiNDUyMDI0ODMxMjk1MjM0MDkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9ef0a4389b08e23638182ab5bbfdbc5e96674a41af27efb8ee6014a488759cff
hovercard-subject-tagpull_request:4626906220
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/8811/files
twitter:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
og:image:altCloses #xxxx One of checkbox below must be checked. I did not use AI to write the code of this patch. This PR follows our AI policy Summary Follow-up to #8804. A value stored in a slot is not...
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/8811/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8811%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%2F8811%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/8811/files
Reloadhttps://github.com/RustPython/RustPython/pull/8811/files
Reloadhttps://github.com/RustPython/RustPython/pull/8811/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests130 (130)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
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:atomic-member-slotshttps://github.com/youknowone/RustPython/tree/atomic-member-slots
Conversation 9 https://github.com/RustPython/RustPython/pull/8811
Commits 5 https://github.com/RustPython/RustPython/pull/8811/commits
Checks 19 https://github.com/RustPython/RustPython/pull/8811/checks
Files changed https://github.com/RustPython/RustPython/pull/8811/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8811/files
Address slot members by byte offset https://github.com/RustPython/RustPython/pull/8811/files#top
Show all changes 5 commits https://github.com/RustPython/RustPython/pull/8811/files
9a2a58a Keep slot values freelist-eligible youknowone Sep 24, 2026 https://github.com/RustPython/RustPython/pull/8811/commits/9a2a58a987000c50abfb82d512754f443e51a110
dcb5f39 Address slot members by byte offset youknowone Sep 24, 2026 https://github.com/RustPython/RustPython/pull/8811/commits/dcb5f39f82bcb25f3548771f3ee17c6177bb4e6d
fc4f48d Keep base slot offsets stable on subclasses youknowone Sep 24, 2026 https://github.com/RustPython/RustPython/pull/8811/commits/fc4f48dba6f58e0b15add4b5b4ac4d1b3db0bec6
487a920 Pack slot cells flush against the extension header youknowone Sep 24, 2026 https://github.com/RustPython/RustPython/pull/8811/commits/487a920fa2118554feb1d4e6401b5bf808e0fc98
516b3e7 Place weakref lists in front of slot cells youknowone Sep 24, 2026 https://github.com/RustPython/RustPython/pull/8811/commits/516b3e70c853b76593e7f9a4599adc6ea7348270
Clear filters https://github.com/RustPython/RustPython/pull/8811/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8811/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8811/files
descrobject.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-d64e4721d804fd795059878868b6766be2d0be0b4e19f19247a963625690a4c1
descriptor.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
type.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-fb88962f9343ca7b8d31bfe34f5063136575e05eadae6fccb3b64658e14b0d6c
frame.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
core.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-29e5bc70b379859cc90757773e821848e53dff65ce99167408b6f547bc317196
ext.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-ccab52adc1059b887873204f5691f9782da457688e788cfa7b214961357e11fa
mod.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-97e64e96821f94d35a99188a63905688e41b2334884261f3330d71f3dce4dae9
traverse_object.rs https://github.com/RustPython/RustPython/pull/8811/files#diff-2804a668cb68f462448ba21936c679eb3bc65c9629c749e408cbd2755ab9ab0c
crates/capi/src/descrobject.rshttps://github.com/RustPython/RustPython/pull/8811/files#diff-d64e4721d804fd795059878868b6766be2d0be0b4e19f19247a963625690a4c1
View file https://github.com/youknowone/RustPython/blob/516b3e70c853b76593e7f9a4599adc6ea7348270/crates/capi/src/descrobject.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8811/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8811/files#diff-d64e4721d804fd795059878868b6766be2d0be0b4e19f19247a963625690a4c1
https://github.com/RustPython/RustPython/pull/8811/files#diff-d64e4721d804fd795059878868b6766be2d0be0b4e19f19247a963625690a4c1
https://github.com/RustPython/RustPython/pull/8811/files#diff-d64e4721d804fd795059878868b6766be2d0be0b4e19f19247a963625690a4c1
coderabbitaihttps://github.com/apps/coderabbitai
Sep 24, 2026https://github.com/RustPython/RustPython/pull/8811/files#r4094762709
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8811/files
https://github.com/RustPython/RustPython/pull/8811/files#diff-d64e4721d804fd795059878868b6766be2d0be0b4e19f19247a963625690a4c1
https://github.com/RustPython/RustPython/pull/8811/files#diff-d64e4721d804fd795059878868b6766be2d0be0b4e19f19247a963625690a4c1
crates/vm/src/builtins/descriptor.rshttps://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
View file https://github.com/youknowone/RustPython/blob/516b3e70c853b76593e7f9a4599adc6ea7348270/crates/vm/src/builtins/descriptor.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8811/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/8811/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
crates/vm/src/builtins/type.rshttps://github.com/RustPython/RustPython/pull/8811/files#diff-fb88962f9343ca7b8d31bfe34f5063136575e05eadae6fccb3b64658e14b0d6c
View file https://github.com/youknowone/RustPython/blob/516b3e70c853b76593e7f9a4599adc6ea7348270/crates/vm/src/builtins/type.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8811/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8811/files#diff-fb88962f9343ca7b8d31bfe34f5063136575e05eadae6fccb3b64658e14b0d6c
https://github.com/RustPython/RustPython/pull/8811/files#diff-fb88962f9343ca7b8d31bfe34f5063136575e05eadae6fccb3b64658e14b0d6c
crates/vm/src/frame.rshttps://github.com/RustPython/RustPython/pull/8811/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
View file https://github.com/youknowone/RustPython/blob/516b3e70c853b76593e7f9a4599adc6ea7348270/crates/vm/src/frame.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8811/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8811/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/8811/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
https://github.com/RustPython/RustPython/pull/8811/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
coderabbitaihttps://github.com/apps/coderabbitai
Sep 24, 2026https://github.com/RustPython/RustPython/pull/8811/files#r4094762722
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8811/files
https://github.com/RustPython/RustPython/pull/8811/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8811/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8811/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.