René's URL Explorer Experiment


Title: gh-121459: Deferred LOAD_GLOBAL by Fidget-Spinner · Pull Request #123128 · python/cpython · GitHub

Open Graph Title: gh-121459: Deferred LOAD_GLOBAL by Fidget-Spinner · Pull Request #123128 · python/cpython

X Title: gh-121459: Deferred LOAD_GLOBAL by Fidget-Spinner · Pull Request #123128 · python/cpython

Description: This implements PEP 703 deferred refcounting for LOAD_GLOBAL in an agnostic way using the cases generator. So it won't block full deferring of references in the future. For now, we need to write directly to a stackref entry to keep the global alive. Changing the dictionary lookup to stackref variants is also a prerequisite for LOAD_ATTR and friends. Issue: gh-121459

Open Graph Description: This implements PEP 703 deferred refcounting for LOAD_GLOBAL in an agnostic way using the cases generator. So it won't block full deferring of references in the future. For now, we need to writ...

X Description: This implements PEP 703 deferred refcounting for LOAD_GLOBAL in an agnostic way using the cases generator. So it won't block full deferring of references in the future. For now, we need to ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dbcbfc12-5eb3-489b-ffd2-f049dd4f7784
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9E6A:35E4DB:1F24B05:2B14672:6A56AC11
html-safe-nonce0ea6735a977f429527e40aa98f6396feb4d980370283ce7a8f914f5e9bfbf78d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTZBOjM1RTREQjoxRjI0QjA1OjJCMTQ2NzI6NkE1NkFDMTEiLCJ2aXNpdG9yX2lkIjoiNjEzMjg4NDMzNjA0MTk2MjUxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf96e6e805db31364b4cf22e1aa22e5453031266723e967e3e06e4b2174164caa
hovercard-subject-tagpull_request:2024410442
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/123128/files
twitter:imagehttps://avatars.githubusercontent.com/u/28750310?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/28750310?s=400&v=4
og:image:altThis implements PEP 703 deferred refcounting for LOAD_GLOBAL in an agnostic way using the cases generator. So it won't block full deferring of references in the future. For now, we need to writ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None13efe7fe8ecc41eda1078cbde8206041ed92bc54e29bcb737e9353dd9c407aad
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
release5466ebe023a0abf876a1e6c5d7602ee8f5e6a02b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/123128/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123128%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123128%2Ffiles
Sign up https://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/123128/files
Reloadhttps://github.com/python/cpython/pull/123128/files
Reloadhttps://github.com/python/cpython/pull/123128/files
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
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
Fidget-Spinnerhttps://github.com/Fidget-Spinner
python:mainhttps://github.com/python/cpython/tree/main
Fidget-Spinner:deferred_globals_finalhttps://github.com/Fidget-Spinner/cpython/tree/deferred_globals_final
Conversation 56 https://github.com/python/cpython/pull/123128
Commits 18 https://github.com/python/cpython/pull/123128/commits
Checks 0 https://github.com/python/cpython/pull/123128/checks
Files changed https://github.com/python/cpython/pull/123128/files
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
gh-121459: Deferred LOAD_GLOBAL https://github.com/python/cpython/pull/123128/files#top
Show all changes 18 commits https://github.com/python/cpython/pull/123128/files
803e9f7 deferred globals Fidget-Spinner Jul 4, 2024 https://github.com/python/cpython/pull/123128/commits/803e9f7e6f1eb3dd722d97a40c74e9a073fa24ab
b213b6f fix merge from upstream Fidget-Spinner Aug 18, 2024 https://github.com/python/cpython/pull/123128/commits/b213b6f1bd4f1e4a992786a147b3f18e0de69f13
11d2fb6 use cases generator to generate stack offsets Fidget-Spinner Aug 18, 2024 https://github.com/python/cpython/pull/123128/commits/11d2fb6f6f84d7f5d8ca562f98c271a08f92d4b9
ea8d855 fix bug Fidget-Spinner Aug 18, 2024 https://github.com/python/cpython/pull/123128/commits/ea8d8555406a6b7d726a582ab1a4cf71d1b79940
af0c032 add type annotations Fidget-Spinner Aug 18, 2024 https://github.com/python/cpython/pull/123128/commits/af0c0324fccdc3e4f98d4b98147138f3feb08ee7
1a431de Update Objects/dictobject.c Fidget-Spinner Aug 19, 2024 https://github.com/python/cpython/pull/123128/commits/1a431de167c6f5c8eb0c46388a40c6aa4b7e48c9
48bebe9 Update Objects/dictobject.c Fidget-Spinner Aug 19, 2024 https://github.com/python/cpython/pull/123128/commits/48bebe9afdcbd9728766598a1057833d4a4c2b4d
6e948b4 Update Objects/dictobject.c Fidget-Spinner Aug 19, 2024 https://github.com/python/cpython/pull/123128/commits/6e948b48993479f1781d90465f3424ef79f5995c
e23567a Address review Fidget-Spinner Aug 19, 2024 https://github.com/python/cpython/pull/123128/commits/e23567ae69c026224b85ce7c2f8f7ee14a357004
dbbebf9 Merge branch 'deferred_globals_final' of github.com:Fidget-Spinner/cp… Fidget-Spinner Aug 19, 2024 https://github.com/python/cpython/pull/123128/commits/dbbebf990e91d010b268dba53bfa2bebac629c2f
dbdee10 partially address review Fidget-Spinner Aug 22, 2024 https://github.com/python/cpython/pull/123128/commits/dbdee10958477f2a9588310e48314e913df89afb
6d176c0 simplify Fidget-Spinner Aug 22, 2024 https://github.com/python/cpython/pull/123128/commits/6d176c011a6daba50535595bad2d7db35ce06501
4ff9f17 fix some stuff Fidget-Spinner Aug 22, 2024 https://github.com/python/cpython/pull/123128/commits/4ff9f177356706a14d8839ee5df4bbc1b8cf0131
c644ebf specialize for str and split str, move out NULL checks Fidget-Spinner Aug 28, 2024 https://github.com/python/cpython/pull/123128/commits/c644ebffc9af2200ae16eae37400406101bba123
64f932a remove allow_unbalanced_parens Fidget-Spinner Aug 28, 2024 https://github.com/python/cpython/pull/123128/commits/64f932ac08fee24c62d46e8bf9fd163b24126d51
bfd4400 Add a & for STACK_ENTRY Fidget-Spinner Aug 28, 2024 https://github.com/python/cpython/pull/123128/commits/bfd4400299f21b34b9f68d8d80cd9d5e8e5591e3
0c1ee7e Address review Fidget-Spinner Sep 8, 2024 https://github.com/python/cpython/pull/123128/commits/0c1ee7e42c71f689dd97392f1abefe44e4db8c0d
ad33dd1 Change to use array instead of STACK_ENTRY Fidget-Spinner Sep 12, 2024 https://github.com/python/cpython/pull/123128/commits/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0
Clear filters https://github.com/python/cpython/pull/123128/files
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
pycore_ceval.h https://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
pycore_dict.h https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
dictobject.c https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
bytecodes.c https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
ceval.c https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
executor_cases.c.h https://github.com/python/cpython/pull/123128/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
generated_cases.c.h https://github.com/python/cpython/pull/123128/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
optimizer_cases.c.h https://github.com/python/cpython/pull/123128/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2
Include/internal/pycore_ceval.hhttps://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Include/internal/pycore_ceval.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/123128/{{ revealButtonHref }}
https://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
https://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
Include/internal/pycore_dict.hhttps://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Include/internal/pycore_dict.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/123128/{{ revealButtonHref }}
https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L215
Objects/dictobject.chttps://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Objects/dictobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/123128/{{ revealButtonHref }}
https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L225
Python/bytecodes.chttps://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/bytecodes.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/123128/{{ revealButtonHref }}
https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L226
Python/ceval.chttps://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/ceval.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/123128/{{ revealButtonHref }}
https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Python/executor_cases.c.hhttps://github.com/python/cpython/pull/123128/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/executor_cases.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
Python/generated_cases.c.hhttps://github.com/python/cpython/pull/123128/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/generated_cases.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/123128/files
Python/optimizer_cases.c.hhttps://github.com/python/cpython/pull/123128/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2
View file https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/optimizer_cases.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/123128/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.