René's URL Explorer Experiment


Title: gh-81057: Move the Allocators to _PyRuntimeState by ericsnowcurrently · Pull Request #99217 · python/cpython · GitHub

Open Graph Title: gh-81057: Move the Allocators to _PyRuntimeState by ericsnowcurrently · Pull Request #99217 · python/cpython

X Title: gh-81057: Move the Allocators to _PyRuntimeState by ericsnowcurrently · Pull Request #99217 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: The global allocators were stored in 3 static global variables: _PyMem_Raw, _PyMem, and _PyObject. State for the "small block" allocator was stored in another 13. That makes a total of ...

X Description: The global allocators were stored in 3 static global variables: _PyMem_Raw, _PyMem, and _PyObject. State for the "small block" allocator was stored in another 13. That makes a t...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:f5a9cdd6-555d-d643-6bae-1adb5df92de7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCE2E:18C2EF:B399E:EE96E:6969632A
html-safe-noncef5af5e52f258943cbe2365915f1323ba631e3750b2bcf308cad9d7707c59cc62
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTJFOjE4QzJFRjpCMzk5RTpFRTk2RTo2OTY5NjMyQSIsInZpc2l0b3JfaWQiOiI1NjE5NTI3OTc5MTI5OTg3ODgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac10b0019ea1a358ef19771f8b624d3a24de5091a9d65cc0495cd030edde06276c
hovercard-subject-tagpull_request:1113337801
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/99217/commits
twitter:imagehttps://opengraph.githubassets.com/ddb27f4ee5f00281caf4b3057aa8978151794d8d78b8a67b5b5d43a7fca2f71c/python/cpython/pull/99217
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ddb27f4ee5f00281caf4b3057aa8978151794d8d78b8a67b5b5d43a7fca2f71c/python/cpython/pull/99217
og:image:altThe global allocators were stored in 3 static global variables: _PyMem_Raw, _PyMem, and _PyObject. State for the "small block" allocator was stored in another 13. That makes a total of ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
None48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release669463fcc54773a88c1f5a44eef6b99a5504b9c7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/99217/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99217%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F99217%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/99217/commits
Reloadhttps://github.com/python/cpython/pull/99217/commits
Reloadhttps://github.com/python/cpython/pull/99217/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/99217/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/99217/commits
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:move-allocators-to-runtime-statehttps://github.com/ericsnowcurrently/cpython/tree/move-allocators-to-runtime-state
Conversationhttps://github.com/python/cpython/pull/99217
Commits19 (19)https://github.com/python/cpython/pull/99217/commits
Checkshttps://github.com/python/cpython/pull/99217/checks
Files changedhttps://github.com/python/cpython/pull/99217/files
gh-81057: Move the Allocators to _PyRuntimeStatehttps://github.com/python/cpython/pull/99217/commits#top
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:move-allocators-to-runtime-statehttps://github.com/ericsnowcurrently/cpython/tree/move-allocators-to-runtime-state
Look up the current interpreter in PyObject_Malloc().https://github.com/python/cpython/pull/99217/commits/9a44e7a611213e5f9854e60842c6694ea2822b4a
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
9a44e7ahttps://github.com/python/cpython/pull/99217/commits/9a44e7a611213e5f9854e60842c6694ea2822b4a
https://github.com/python/cpython/tree/9a44e7a611213e5f9854e60842c6694ea2822b4a
Move the low-level allocator implementations to a header file.https://github.com/python/cpython/pull/99217/commits/16cd128dd79ac95b67bef8cf684dcb6e864c9601
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
16cd128https://github.com/python/cpython/pull/99217/commits/16cd128dd79ac95b67bef8cf684dcb6e864c9601
https://github.com/python/cpython/tree/16cd128dd79ac95b67bef8cf684dcb6e864c9601
Move the top-level allocators state.https://github.com/python/cpython/pull/99217/commits/737877ca6bbcdf0ec7acecc587c194b01132536d
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
737877chttps://github.com/python/cpython/pull/99217/commits/737877ca6bbcdf0ec7acecc587c194b01132536d
https://github.com/python/cpython/tree/737877ca6bbcdf0ec7acecc587c194b01132536d
Move the allocators to the runtime state.https://github.com/python/cpython/pull/99217/commits/6dd7ba5db4f82e4a53a712c5f86a278e4dafeb8f
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
6dd7ba5https://github.com/python/cpython/pull/99217/commits/6dd7ba5db4f82e4a53a712c5f86a278e4dafeb8f
https://github.com/python/cpython/tree/6dd7ba5db4f82e4a53a712c5f86a278e4dafeb8f
Drop debug code.https://github.com/python/cpython/pull/99217/commits/56251cbe79d0acecf8d3f3866c69797a74dae530
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
56251cbhttps://github.com/python/cpython/pull/99217/commits/56251cbe79d0acecf8d3f3866c69797a74dae530
https://github.com/python/cpython/tree/56251cbe79d0acecf8d3f3866c69797a74dae530
Move the top-level object allocator to the runtime state.https://github.com/python/cpython/pull/99217/commits/007eed4b95e26dfa1bc004fc3cb4cac8d9568177
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
007eed4https://github.com/python/cpython/pull/99217/commits/007eed4b95e26dfa1bc004fc3cb4cac8d9568177
https://github.com/python/cpython/tree/007eed4b95e26dfa1bc004fc3cb4cac8d9568177
Move the arenas state to the runtime state.https://github.com/python/cpython/pull/99217/commits/38a80d849fbee950330daf95c48efd940ca0d611
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
38a80d8https://github.com/python/cpython/pull/99217/commits/38a80d849fbee950330daf95c48efd940ca0d611
https://github.com/python/cpython/tree/38a80d849fbee950330daf95c48efd940ca0d611
Pass the context to initializers explicitly.https://github.com/python/cpython/pull/99217/commits/83d397fdc8655f5d5b5a102985a74f2aad80fc15
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
83d397fhttps://github.com/python/cpython/pull/99217/commits/83d397fdc8655f5d5b5a102985a74f2aad80fc15
https://github.com/python/cpython/tree/83d397fdc8655f5d5b5a102985a74f2aad80fc15
Move the allocator groupings to pycore_allocators.h.https://github.com/python/cpython/pull/99217/commits/991dfc8507681b90a4cc4ee721b92267f3e67065
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
991dfc8https://github.com/python/cpython/pull/99217/commits/991dfc8507681b90a4cc4ee721b92267f3e67065
https://github.com/python/cpython/tree/991dfc8507681b90a4cc4ee721b92267f3e67065
Move the arena allocator to pycore_pymem_init.h.https://github.com/python/cpython/pull/99217/commits/ac5cfb0e036fff326ae31c64acb590b17f50dec9
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
ac5cfb0https://github.com/python/cpython/pull/99217/commits/ac5cfb0e036fff326ae31c64acb590b17f50dec9
https://github.com/python/cpython/tree/ac5cfb0e036fff326ae31c64acb590b17f50dec9
Add a NEWS entry.https://github.com/python/cpython/pull/99217/commits/9f32218a4e56a6cb0062976d8fc73edd3b50213c
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
9f32218https://github.com/python/cpython/pull/99217/commits/9f32218a4e56a6cb0062976d8fc73edd3b50213c
https://github.com/python/cpython/tree/9f32218a4e56a6cb0062976d8fc73edd3b50213c
Move the object allocator definitions to pycore_obmalloc*.h.https://github.com/python/cpython/pull/99217/commits/e5fc1394449dc1eed7c126d204817a2d14837367
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
e5fc139https://github.com/python/cpython/pull/99217/commits/e5fc1394449dc1eed7c126d204817a2d14837367
https://github.com/python/cpython/tree/e5fc1394449dc1eed7c126d204817a2d14837367
pycore_allocators.h -> pycore_pymem_allocators.hhttps://github.com/python/cpython/pull/99217/commits/d61b4101c4b5e6ff0827bb13008ebea8c07bf979
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
d61b410https://github.com/python/cpython/pull/99217/commits/d61b4101c4b5e6ff0827bb13008ebea8c07bf979
https://github.com/python/cpython/tree/d61b4101c4b5e6ff0827bb13008ebea8c07bf979
Move the arena allocator impl to its own file.https://github.com/python/cpython/pull/99217/commits/0efcef7722877ddf7da1424405038d9e579121ca
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
0efcef7https://github.com/python/cpython/pull/99217/commits/0efcef7722877ddf7da1424405038d9e579121ca
https://github.com/python/cpython/tree/0efcef7722877ddf7da1424405038d9e579121ca
Move _Py_GetAllocatedBlocks() over.https://github.com/python/cpython/pull/99217/commits/ec01f9954c3d7b9bf66f3fc4e0138ad159c02a18
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
ec01f99https://github.com/python/cpython/pull/99217/commits/ec01f9954c3d7b9bf66f3fc4e0138ad159c02a18
https://github.com/python/cpython/tree/ec01f9954c3d7b9bf66f3fc4e0138ad159c02a18
Move _PyObject_DebugMallocStat() over.https://github.com/python/cpython/pull/99217/commits/a1ff9b0deed26a0ac653ce44285ff3d1bf796424
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
a1ff9b0https://github.com/python/cpython/pull/99217/commits/a1ff9b0deed26a0ac653ce44285ff3d1bf796424
https://github.com/python/cpython/tree/a1ff9b0deed26a0ac653ce44285ff3d1bf796424
Restore uint for obmalloc.https://github.com/python/cpython/pull/99217/commits/3172cbeaf0b6efa6152fa7b6ce67f3f16e10b3cf
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
3172cbehttps://github.com/python/cpython/pull/99217/commits/3172cbeaf0b6efa6152fa7b6ce67f3f16e10b3cf
https://github.com/python/cpython/tree/3172cbeaf0b6efa6152fa7b6ce67f3f16e10b3cf
Do not define the functions in header files.https://github.com/python/cpython/pull/99217/commits/adc60e2fd0604f2b688b3a6d999346a6f1b30fb2
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
adc60e2https://github.com/python/cpython/pull/99217/commits/adc60e2fd0604f2b688b3a6d999346a6f1b30fb2
https://github.com/python/cpython/tree/adc60e2fd0604f2b688b3a6d999346a6f1b30fb2
Drop pycore_*_allocators.h.https://github.com/python/cpython/pull/99217/commits/5262207d2f8906bee1c46b3a6f178b2bb0bb4124
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/python/cpython/commits?author=ericsnowcurrently
5262207https://github.com/python/cpython/pull/99217/commits/5262207d2f8906bee1c46b3a6f178b2bb0bb4124
https://github.com/python/cpython/tree/5262207d2f8906bee1c46b3a6f178b2bb0bb4124
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.