René's URL Explorer Experiment


Title: gh-148571: [JIT] Preserve family-head recorder layouts for specialized opcode families by cocolato · Pull Request #148730 · python/cpython · GitHub

Open Graph Title: gh-148571: [JIT] Preserve family-head recorder layouts for specialized opcode families by cocolato · Pull Request #148730 · python/cpython

X Title: gh-148571: [JIT] Preserve family-head recorder layouts for specialized opcode families by cocolato · Pull Request #148730 · python/cpython

Description: Refer: #148571 (comment) TRACE_RECORD captures snapshot values before execution, but the bytecode subsequently translated into the trace may have been transformed into specialized ops within the same family. So if this specialized op inherits the recorder layout from the family head but actually requires a derived value—such as a type object, generator function, or bound method payload—a mismatch arises between the recorder layout and the consumption semantics. The fix implemented in this change is as follows: Have the base opcode of each affected family uniformly record the widest raw/base value required by the entire family, while leaving the semantics of existing _RECORD_* uops unchanged. If a specialized family member still requires a derived view, the optimizer projects the raw recorded value into the form it actually needs to consume on-demand during the trace translation phase. Some related issues: #148716 #148618 Issue: gh-148571

Open Graph Description: Refer: #148571 (comment) TRACE_RECORD captures snapshot values before execution, but the bytecode subsequently translated into the trace may have been transformed into specialized ops within the sa...

X Description: Refer: #148571 (comment) TRACE_RECORD captures snapshot values before execution, but the bytecode subsequently translated into the trace may have been transformed into specialized ops within the sa...

Opengraph URL: https://github.com/python/cpython/pull/148730

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:395a9350-91c4-8f2d-982d-ed6a9ca7a492
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id990A:2E9D3B:432E3F:54771F:6B020EAE
html-safe-nonce75a93451396e8b624fd4c24e1ba60e4fe2450b525afa1bc38ee6de99669baa30
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTBBOjJFOUQzQjo0MzJFM0Y6NTQ3NzFGOjZCMDIwRUFFIiwidmlzaXRvcl9pZCI6IjkyMjEwOTY5NzYyNzEzMTU2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac93dcf37efe6bb4c2e5ae53d5bd0e44c8e1bde42b6e96c54938f3f64fb6933464
hovercard-subject-tagpull_request:3550186055
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/python/cpython/pull/148730/files
twitter:imagehttps://avatars.githubusercontent.com/u/35182391?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/35182391?s=400&v=4
og:image:altRefer: #148571 (comment) TRACE_RECORD captures snapshot values before execution, but the bytecode subsequently translated into the trace may have been transformed into specialized ops within the sa...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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/python/cpython/pull/148730/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148730%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%2Fpython%2Fcpython%2Fpull%2F148730%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=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/148730/files
Reloadhttps://github.com/python/cpython/pull/148730/files
Reloadhttps://github.com/python/cpython/pull/148730/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
cocolato:jit_record_familyhttps://github.com/cocolato/cpython/tree/jit_record_family
Conversation 12 https://github.com/python/cpython/pull/148730
Commits 12 https://github.com/python/cpython/pull/148730/commits
Checks 83 https://github.com/python/cpython/pull/148730/checks
Files changed https://github.com/python/cpython/pull/148730/files
Please reload this pagehttps://github.com/python/cpython/pull/148730/files
gh-148571: [JIT] Preserve family-head recorder layouts for specialized opcode families https://github.com/python/cpython/pull/148730/files#top
Show all changes 12 commits https://github.com/python/cpython/pull/148730/files
ffa4177 support family-head recorder cocolato Apr 18, 2026 https://github.com/python/cpython/pull/148730/commits/ffa417753c1f1fc21c757d4bbe2500682f288984
13c0603 Merge branch 'main' into jit_record_family cocolato Apr 18, 2026 https://github.com/python/cpython/pull/148730/commits/13c060304eecee1decc03c328b5453b6a061ef84
dcda8e7 regen cases cocolato Apr 18, 2026 https://github.com/python/cpython/pull/148730/commits/dcda8e7635b89aecc83e96c7eebba79267de9083
e76e002 📜🤖 Added by blurb_it. blurb-it[bot] Apr 18, 2026 https://github.com/python/cpython/pull/148730/commits/e76e0020c12499568de56d6aac999a58dedc897c
1004eff fix GET_ITER cocolato Apr 18, 2026 https://github.com/python/cpython/pull/148730/commits/1004eff40782711cd85cd5bc252ac4c5595437b5
33093df add record slots map cocolato Apr 19, 2026 https://github.com/python/cpython/pull/148730/commits/33093dfe037f4fcce6183fc41dc0190a15289591
b513af5 address review cocolato Apr 26, 2026 https://github.com/python/cpython/pull/148730/commits/b513af549393208707331969d57d4ad37ad8ebc1
193baf0 Merge branch 'main' into jit_record_family cocolato Apr 26, 2026 https://github.com/python/cpython/pull/148730/commits/193baf07936bd4bd74592a6e4e7c8867cf5c1466
83795a6 fix merge cocolato Apr 26, 2026 https://github.com/python/cpython/pull/148730/commits/83795a6ab148286d682eddca6c84de4fde6fd343
5b49abd regen cases cocolato Apr 26, 2026 https://github.com/python/cpython/pull/148730/commits/5b49abd7e7d56cda702cb0aac846a64ee9c567d0
256d6cd fix generator order cocolato Apr 26, 2026 https://github.com/python/cpython/pull/148730/commits/256d6cdbaf9e70f6e4dcbd31f66919357028becf
513f748 address review cocolato Apr 27, 2026 https://github.com/python/cpython/pull/148730/commits/513f748762d4dc8aa4b70c06f907c3f52a78f138
Clear filters https://github.com/python/cpython/pull/148730/files
Please reload this pagehttps://github.com/python/cpython/pull/148730/files
Please reload this pagehttps://github.com/python/cpython/pull/148730/files
pycore_optimizer.h https://github.com/python/cpython/pull/148730/files#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc
test_opt.py https://github.com/python/cpython/pull/148730/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439
test_generated_cases.py https://github.com/python/cpython/pull/148730/files#diff-9168c63f7de36279d370ea7d6403f554f48e6da75e82b6b70b5a207a11848750
2026-04-18-16-41-04.gh-issue-148571.Q6WB3A.rst https://github.com/python/cpython/pull/148730/files#diff-e5c6b9e79b8c91c6b3608998e738f4bb9629b93dae4e6091abb5703692514071
optimizer.c https://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
record_functions.c.h https://github.com/python/cpython/pull/148730/files#diff-ac2bf70082a97de53db16bbb949b29240f59f89c4b9ad93928b3926738cbb74c
record_function_generator.py https://github.com/python/cpython/pull/148730/files#diff-643423aa764f9977037e798665460f73bc90a0ffab7be68f0f7056fce5fa357a
Include/internal/pycore_optimizer.hhttps://github.com/python/cpython/pull/148730/files#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc
View file https://github.com/cocolato/cpython/blob/513f748762d4dc8aa4b70c06f907c3f52a78f138/Include/internal/pycore_optimizer.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148730/{{ revealButtonHref }}
https://github.com/python/cpython/pull/148730/files#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc
https://github.com/python/cpython/pull/148730/files#diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc
Lib/test/test_capi/test_opt.pyhttps://github.com/python/cpython/pull/148730/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439
View file https://github.com/cocolato/cpython/blob/513f748762d4dc8aa4b70c06f907c3f52a78f138/Lib/test/test_capi/test_opt.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148730/{{ revealButtonHref }}
https://github.com/python/cpython/pull/148730/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439
https://github.com/python/cpython/pull/148730/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439
Lib/test/test_generated_cases.pyhttps://github.com/python/cpython/pull/148730/files#diff-9168c63f7de36279d370ea7d6403f554f48e6da75e82b6b70b5a207a11848750
View file https://github.com/cocolato/cpython/blob/513f748762d4dc8aa4b70c06f907c3f52a78f138/Lib/test/test_generated_cases.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148730/{{ revealButtonHref }}
https://github.com/python/cpython/pull/148730/files#diff-9168c63f7de36279d370ea7d6403f554f48e6da75e82b6b70b5a207a11848750
https://github.com/python/cpython/pull/148730/files#diff-9168c63f7de36279d370ea7d6403f554f48e6da75e82b6b70b5a207a11848750
https://github.com/python/cpython/pull/148730/files#diff-9168c63f7de36279d370ea7d6403f554f48e6da75e82b6b70b5a207a11848750
Please reload this pagehttps://github.com/python/cpython/pull/148730/files
https://github.com/python/cpython/pull/148730/files#diff-9168c63f7de36279d370ea7d6403f554f48e6da75e82b6b70b5a207a11848750
Misc/NEWS.d/next/Core_and_Builtins/2026-04-18-16-41-04.gh-issue-148571.Q6WB3A.rsthttps://github.com/python/cpython/pull/148730/files#diff-e5c6b9e79b8c91c6b3608998e738f4bb9629b93dae4e6091abb5703692514071
View file https://github.com/cocolato/cpython/blob/513f748762d4dc8aa4b70c06f907c3f52a78f138/Misc/NEWS.d/next/Core_and_Builtins/2026-04-18-16-41-04.gh-issue-148571.Q6WB3A.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148730/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L302
Python/optimizer.chttps://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
View file https://github.com/cocolato/cpython/blob/513f748762d4dc8aa4b70c06f907c3f52a78f138/Python/optimizer.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148730/{{ revealButtonHref }}
https://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
markshannonhttps://github.com/markshannon
Apr 27, 2026https://github.com/python/cpython/pull/148730/files#r3147403237
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/148730/files
https://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
https://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
https://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
https://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
cocolatohttps://github.com/cocolato
Apr 26, 2026https://github.com/python/cpython/pull/148730/files#r3143489050
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/148730/files
https://github.com/python/cpython/pull/148730/files#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
Please reload this pagehttps://github.com/python/cpython/pull/148730/files
Please reload this pagehttps://github.com/python/cpython/pull/148730/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.