René's URL Explorer Experiment


Title: bpo-45953: Statically allocate the main interpreter (and initial thread state). by ericsnowcurrently · Pull Request #29883 · python/cpython · GitHub

Open Graph Title: bpo-45953: Statically allocate the main interpreter (and initial thread state). by ericsnowcurrently · Pull Request #29883 · python/cpython

X Title: bpo-45953: Statically allocate the main interpreter (and initial thread state). by ericsnowcurrently · Pull Request #29883 · python/cpython

Description: Currently the main interpreter is allocated on the heap during runtime initialization. Here we are instead embedding it into _PyRuntimeState, which means it is statically allocated as part of the _PyRuntime global. The same goes for the initial thread state (of each interpreter, including the main one). Consequently there are fewer allocations during runtime/interpreter init, fewer possible failures, and better memory locality. FYI, this also helps efforts to consolidate globals, which in turns helps work on subinterpreter isolation. https://bugs.python.org/issue45953

Open Graph Description: Currently the main interpreter is allocated on the heap during runtime initialization. Here we are instead embedding it into _PyRuntimeState, which means it is statically allocated as part of the ...

X Description: Currently the main interpreter is allocated on the heap during runtime initialization. Here we are instead embedding it into _PyRuntimeState, which means it is statically allocated as part of the ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a8d45faf-476f-8cb3-8cd2-04bc7fc4308d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93B0:3C7D7F:144EAE8:1BF4FAF:696AA4FB
html-safe-nonce4ace952c2c1f36300ced6d8f65b18fd9f31ff23beb75bad641da3fa836e3b186
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0IwOjNDN0Q3RjoxNDRFQUU4OjFCRjRGQUY6Njk2QUE0RkIiLCJ2aXNpdG9yX2lkIjoiNDY4OTAxMjUzODM3ODcyNDYwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacaa221b1915a707858ae5e3cacc6c94d039d1a30b006e8f29de1fbb83b1c2beb6
hovercard-subject-tagpull_request:793044249
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/29883/files
twitter:imagehttps://avatars.githubusercontent.com/u/1152074?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1152074?s=400&v=4
og:image:altCurrently the main interpreter is allocated on the heap during runtime initialization. Here we are instead embedding it into _PyRuntimeState, which means it is statically allocated as part of the ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9
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
releasedd9a979046e6382bd084e2bd873bf65f797125ff
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/29883/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29883%2Ffiles
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%2F29883%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/29883/files
Reloadhttps://github.com/python/cpython/pull/29883/files
Reloadhttps://github.com/python/cpython/pull/29883/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
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/29883/files
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
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
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:preallocate-mainhttps://github.com/ericsnowcurrently/cpython/tree/preallocate-main
Conversation 68 https://github.com/python/cpython/pull/29883
Commits 78 https://github.com/python/cpython/pull/29883/commits
Checks 0 https://github.com/python/cpython/pull/29883/checks
Files changed https://github.com/python/cpython/pull/29883/files
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
bpo-45953: Statically allocate the main interpreter (and initial thread state). https://github.com/python/cpython/pull/29883/files#top
Show all changes 78 commits https://github.com/python/cpython/pull/29883/files
5e6eda9 Return void from _PyEval_InitState(). ericsnowcurrently Nov 18, 2021 https://github.com/python/cpython/pull/29883/commits/5e6eda95dc3ae242b645576d5e6288ada726e433
de12b98 Fix a memory leak. ericsnowcurrently Nov 18, 2021 https://github.com/python/cpython/pull/29883/commits/de12b988231c4839403d6c45357d9e0ae3710b39
035eff3 Move thread-related interpreter state into a sub-struct. ericsnowcurrently Nov 17, 2021 https://github.com/python/cpython/pull/29883/commits/035eff35781fa39f201a0b1239d6469cb28eafda
1569a53 Factor out init_threadstate(). ericsnowcurrently Nov 18, 2021 https://github.com/python/cpython/pull/29883/commits/1569a5384060dd89a5516afbb0b51eac94227104
518e3f3 Do not initialize a thread state if already initialized. ericsnowcurrently Nov 18, 2021 https://github.com/python/cpython/pull/29883/commits/518e3f3b4881d4b296e1c5bf6ca275bd0e7a075f
9995a84 Avoid allocating the first thread state. ericsnowcurrently Nov 18, 2021 https://github.com/python/cpython/pull/29883/commits/9995a8458b149560dcff9ec252bf4527235c4f17
f22d0da Factor out init_interpreter(). ericsnowcurrently Nov 18, 2021 https://github.com/python/cpython/pull/29883/commits/f22d0da9105ba7917138c2f581511100c27cd209
cf39d57 Preallocate the main interpreter. ericsnowcurrently Nov 18, 2021 https://github.com/python/cpython/pull/29883/commits/cf39d57ed67470887f019019627ad5e750627ceb
b840213 Add a note about expectations for init_interpreter(). ericsnowcurrently Dec 1, 2021 https://github.com/python/cpython/pull/29883/commits/b840213179cfc893adcfc2bdd4fa4b9319d3af0c
3bf69b0 Add a NEWS entry. ericsnowcurrently Dec 1, 2021 https://github.com/python/cpython/pull/29883/commits/3bf69b0b44865ba765cff36b786d33655967a57e
4de466e Add _PyInterpreterState_Main(). ericsnowcurrently Dec 1, 2021 https://github.com/python/cpython/pull/29883/commits/4de466ec21ca475a8620ba9d5fd0d41363298375
9bb32a6 Fix a check for the main interpreter. ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/9bb32a6cb953a5b3429c1c80fc8b8ff67408de27
385f298 Ensure no subinterpreters are created until after the main interprete… ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/385f2987354c96113468543093f1bd9571d4de72
354997f Make sure the interpreter is fully initialized. ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/354997f7935ba6377183a87e36813e7c55d41db0
9bbf8a0 Use PyMem_RawCalloc() to allocate thread states. ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/9bbf8a0d56262fbe0f31dc07f50d5674522542af
8d1cf35 Make sure the thread state is fully initialized. ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/8d1cf355e83df6339654cce51fdc62fcb71a4c3e
188aed8 Clear the preallocated states when "deleted". ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/188aed88c9820311d66e922f1d5f31b94bba9d83
e0da483 Statically initialize the "preallocated" states. ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/e0da4838c4d645cdab5eb487a63407e262dce0a9
46c7767 Fix a typo. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/46c7767d3858fd80bb5fa36a5f785f9d9db13f18
7ca8d1c Stop memset'ing the statically initialized _PyRuntime. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/7ca8d1c36967ac2a4fb679a1ccb822b8a7672998
ed6c273 Fix typos. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/ed6c273db7c0f11b922310e09d1b10733eabd3e0
29e1764 Only expose _PyThreadState_INIT in the internal API. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/29e1764cb279acb5dd182495a763d1b930486f30
1a83910 If needed, "statically" initialize the preallocated thread state. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/1a8391069e28dd2f4f7eedec6c3554e6c3e651cd
8631805 Check if _preallocated is initialized when initializing from other. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/8631805c12a012decff481012a94a4e520c3c350
a0569bb init_interpreter_from_other -> init_interpreter_static_data. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/a0569bbef34abc2c9883da10a9a2c8fc4ae984c4
4c3c0f9 "Statically" initialize the preallocated thread state. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/4c3c0f9193f6881430d6ef27d23490fd77d7f872
47bfa7e Clear _PyRuntime during finalization. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/47bfa7e32f1a6312eb6f7a6d2b8cbd481798c633
dd69ffa Track if interpreter or thread state has been initialized. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/dd69ffa72b4e756a6c6a2b5aa6451e57a69bebf3
ba75803 Zero-out states during re-init instead of fini. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/ba758033293fb687cb3369e2986c9336973498e2
eef3194 Use Py_uintptr_t instead of ssize_t. ericsnowcurrently Dec 3, 2021 https://github.com/python/cpython/pull/29883/commits/eef31948a2a9cb3c77b8180bf0bf9ad9480c426d
8703297 Add Py*State._initialized. ericsnowcurrently Dec 7, 2021 https://github.com/python/cpython/pull/29883/commits/87032970a869202039781c2200312d882e2ddf0b
d1eddad Factor out init_threadstate(). ericsnowcurrently Dec 7, 2021 https://github.com/python/cpython/pull/29883/commits/d1eddadf0f89e8375e413ed3c975feb9326de4fc
8a8150c Factor out free_threadstate(). ericsnowcurrently Dec 7, 2021 https://github.com/python/cpython/pull/29883/commits/8a8150c1607762f46492d225bea319df66c411e2
7a37237 Factor out init_interpreter(). ericsnowcurrently Dec 7, 2021 https://github.com/python/cpython/pull/29883/commits/7a37237d4c55bd70cefd2e530a950afb0f0e6ea2
b2073ac Factor out free_interpreter(). ericsnowcurrently Dec 7, 2021 https://github.com/python/cpython/pull/29883/commits/b2073acb84f91538643ce31c6911930d196937f1
21a522d Factor out init_runtime(). ericsnowcurrently Dec 7, 2021 https://github.com/python/cpython/pull/29883/commits/21a522de22d782e720bbced0a07fbe3c8fec050d
7b376d4 Factor out _PyRuntimeState_reset(). ericsnowcurrently Dec 7, 2021 https://github.com/python/cpython/pull/29883/commits/7b376d4d51ef93369bd44d86b5dee36018150a2e
562ee42 Merge branch 'main' into preallocate-main ericsnowcurrently Dec 8, 2021 https://github.com/python/cpython/pull/29883/commits/562ee42a0d0f66dd49e44d2d953d28e644a6a66e
ed8f5cd Add _PyInterpreterState_Main(). ericsnowcurrently Dec 1, 2021 https://github.com/python/cpython/pull/29883/commits/ed8f5cd68cea776a29d16d9cb473358b1df5436d
6da97b7 Drop an outdated comment. ericsnowcurrently Dec 8, 2021 https://github.com/python/cpython/pull/29883/commits/6da97b79901ac49da6db72eea39291422b285092
cf24942 Fix a check for the main interpreter. ericsnowcurrently Dec 2, 2021 https://github.com/python/cpython/pull/29883/commits/cf2494240c7e7903c383db7e00e3da9e40cc587c
fac6af6 Merge branch 'main' into preallocate-main ericsnowcurrently Dec 8, 2021 https://github.com/python/cpython/pull/29883/commits/fac6af6e3dddaad098161e3ff9d4c332e19e322b
4aa2073 Merge branch 'main' into preallocate-main ericsnowcurrently Dec 8, 2021 https://github.com/python/cpython/pull/29883/commits/4aa20738fefe771b21839d197ef3eebea1c22210
f135168 Merge branch 'main' into preallocate-main ericsnowcurrently Dec 14, 2021 https://github.com/python/cpython/pull/29883/commits/f13516885ae63ba7f1b0dcb064ce3e570d34a0b8
2b4ba04 Move *_reset() out of the Include/. ericsnowcurrently Dec 14, 2021 https://github.com/python/cpython/pull/29883/commits/2b4ba049446b8f39384b9824555b65fcdd94f8d6
24d1de2 Pass the parent context to init_*_static_data(). ericsnowcurrently Dec 14, 2021 https://github.com/python/cpython/pull/29883/commits/24d1de2d08ce63e2058e14b937ab9458278f2835
84ae7db Drop reset_*() and init_*_static_data(). ericsnowcurrently Dec 14, 2021 https://github.com/python/cpython/pull/29883/commits/84ae7db2a7341e1891d2bdfd1a523ec185993a6d
e9de30c Drop _Py_global_objects_reset(). ericsnowcurrently Dec 14, 2021 https://github.com/python/cpython/pull/29883/commits/e9de30cd6027ba9d6c3d43cc344192a575afa184
51a32ce Drop _preallocated.initialized. ericsnowcurrently Dec 16, 2021 https://github.com/python/cpython/pull/29883/commits/51a32cedcfe4df41d577e062794eaf91341c848c
7104518 Drop _preallocated_used. ericsnowcurrently Dec 16, 2021 https://github.com/python/cpython/pull/29883/commits/71045184b95285bd9acb1d7f8c9762339d480b08
f7a8389 Drop init of PyThreadState._preallocated for now. ericsnowcurrently Dec 16, 2021 https://github.com/python/cpython/pull/29883/commits/f7a83895aad0236d0bcf1f8cd056ee5bc8a385c6
18080a1 Note what could be pre-allocated. ericsnowcurrently Dec 16, 2021 https://github.com/python/cpython/pull/29883/commits/18080a1ca3f8af91b45520b74bbeea3e42990a89
0457119 Add Py*State._static. ericsnowcurrently Dec 16, 2021 https://github.com/python/cpython/pull/29883/commits/0457119fa28a5980d3c075d42ea0f6c0db1f5bdc
923ca7a Avoid an empty struct. ericsnowcurrently Dec 17, 2021 https://github.com/python/cpython/pull/29883/commits/923ca7a4e8ae669f75a4ce8cccca1fbf0c160905
99c2ae1 Drop PyInterpreterState._preallocated.initialized. ericsnowcurrently Jan 4, 2022 https://github.com/python/cpython/pull/29883/commits/99c2ae1eb50498104a062ef34bf39986471b971d
3bc73ee Drop an outdated comment. ericsnowcurrently Jan 4, 2022 https://github.com/python/cpython/pull/29883/commits/3bc73ee9e7e763aa24466bc60648b8243d5a4937
c1808ae Drop outdated comments. ericsnowcurrently Jan 4, 2022 https://github.com/python/cpython/pull/29883/commits/c1808ae466dbab19225b36f611fd25cd11e3c07f
7b98e59 Clarify what remains to be pre-allocated for _PyRuntimeState. ericsnowcurrently Jan 4, 2022 https://github.com/python/cpython/pull/29883/commits/7b98e59987384e24860462313891e47b19df2a92
0383eae Explain what _preallocated is for. ericsnowcurrently Jan 4, 2022 https://github.com/python/cpython/pull/29883/commits/0383eae0ffab7d6db65352ef47a62ef29c4157b0
c959db0 Clarify why some data isn't pre-allocated. ericsnowcurrently Jan 4, 2022 https://github.com/python/cpython/pull/29883/commits/c959db0fc91f14704b0a26c621bd942e6e8b6fdb
5b34b42 Fold _PyThreadState_INIT into _PyInterpreterState_INIT. ericsnowcurrently Jan 10, 2022 https://github.com/python/cpython/pull/29883/commits/5b34b4295181069e2f2bb152f157e004cd11dad8
837bfe6 Fold _PyInterpreterState_INIT into _PyRuntimeState_INIT. ericsnowcurrently Jan 10, 2022 https://github.com/python/cpython/pull/29883/commits/837bfe61d68d7bf7ca32d8c7f9619512950581c1
ebefa35 Drop PyThreadState._preallocated. ericsnowcurrently Jan 10, 2022 https://github.com/python/cpython/pull/29883/commits/ebefa3501b2d434549136ab11dd302c896613560
eb7a080 tstate -> initial_thread. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/eb7a0800cd451422841472d93c6110c77cb87571
1ef4a39 Mirror the top-level structure in _preallocated. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/1ef4a3938c17021c7825c52e475504992cb5334e
771e574 Merge branch 'main' into preallocate-main ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/771e57499829fe272d1e916a64a90ab7637e2237
b5c43f1 Clarify some comments. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/b5c43f1634700294a343278f6ecb88438d7984d5
bfc3906 Fold in _PyRuntimeState._preallocated. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/bfc390680800c829311cfabd228320b789581658
9b25c8b Make "initial" const. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/9b25c8bce26c122f48a880d81d1a7517f07dc934
e776c31 Fold in PyInterpreterState._preallocated. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/e776c31f037b797d6bb05125bfb0524f163c43d6
c6bda1f Move the initial thread to the bottom of PyInterpreterState. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/c6bda1f1f05fbdd1d56141bb91cfb176d5cde7d8
8ab6261 Split up _PyRuntimeState_INIT for less nesting and clutter. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/8ab6261f83aa74828f8e637f29bcf99934766b3d
ff8de28 Fix a comment. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/ff8de281417f8b23dbfed98203345b0be7221d46
b28afb3 Move the main interpreter to the bottom of _PyRuntimeState. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/b28afb3b5e1d216e74e49874127db1f6bac32974
0d30300 Clarify some comments. ericsnowcurrently Jan 11, 2022 https://github.com/python/cpython/pull/29883/commits/0d30300727cbfbd30e3d18b7035aa2120b5dec25
e193794 Add a comment for the _static field. ericsnowcurrently Jan 12, 2022 https://github.com/python/cpython/pull/29883/commits/e1937949c8a09972c3e40aa5728788fd2293cfda
e9f1262 Move the comments about pre-allocated data down. ericsnowcurrently Jan 12, 2022 https://github.com/python/cpython/pull/29883/commits/e9f1262d98307e1158f76d9c4215552f8b9f622c
a6a6471 Fix a typo. ericsnowcurrently Jan 12, 2022 https://github.com/python/cpython/pull/29883/commits/a6a647167f389ffa107d40de70704929efab2bb2
Clear filters https://github.com/python/cpython/pull/29883/files
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
pystate.h https://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
pycore_global_objects.h https://github.com/python/cpython/pull/29883/files#diff-4107cf9e9dd24a85192b33aa7941ed35f5650c08a0200450b6e4ad19b81dbcf9
pycore_interp.h https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
pycore_runtime.h https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
2021-12-01-11-54-27.bpo-45953.2znR0E.rst https://github.com/python/cpython/pull/29883/files#diff-9e056da60286dda3238500364b65e307ecb07103ef15b4080a1f257d0d61651c
signalmodule.c https://github.com/python/cpython/pull/29883/files#diff-99fb04b208835118fdca0d54b76a00c450da3eaff09d2b53e8a03d63bbe88e30
ceval.c https://github.com/python/cpython/pull/29883/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
pystate.c https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L311
Include/cpython/pystate.hhttps://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Include/cpython/pystate.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
https://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
https://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
https://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
https://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
arhadthedevhttps://github.com/arhadthedev
Dec 3, 2021https://github.com/python/cpython/pull/29883/files#r762127939
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Dec 3, 2021https://github.com/python/cpython/pull/29883/files#r762320445
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
arhadthedevhttps://github.com/arhadthedev
Dec 4, 2021https://github.com/python/cpython/pull/29883/files#r762397197
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
https://github.com/python/cpython/pull/29883/files#diff-fefbbf791abe2a1b6d9cab39778d388ebb9135eeefbd734e463aac75d1979e7f
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L316
Include/internal/pycore_global_objects.hhttps://github.com/python/cpython/pull/29883/files#diff-4107cf9e9dd24a85192b33aa7941ed35f5650c08a0200450b6e4ad19b81dbcf9
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Include/internal/pycore_global_objects.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29883/files#diff-4107cf9e9dd24a85192b33aa7941ed35f5650c08a0200450b6e4ad19b81dbcf9
https://github.com/python/cpython/pull/29883/files#diff-4107cf9e9dd24a85192b33aa7941ed35f5650c08a0200450b6e4ad19b81dbcf9
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L317
Include/internal/pycore_interp.hhttps://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Include/internal/pycore_interp.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/29883/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L320
Include/internal/pycore_runtime.hhttps://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Include/internal/pycore_runtime.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
markshannonhttps://github.com/markshannon
Jan 10, 2022https://github.com/python/cpython/pull/29883/files#r781430019
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Jan 10, 2022https://github.com/python/cpython/pull/29883/files#r781538004
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Jan 10, 2022https://github.com/python/cpython/pull/29883/files#r781539820
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29883%2Ffiles
Please reload this pagehttps://github.com/python/cpython/pull/29883/files
https://github.com/python/cpython/pull/29883/files#diff-004269ce4e6ea86068fb11d8ad53fc4321b693e991e9f847b43d0ecf97482862
Misc/NEWS.d/next/Core and Builtins/2021-12-01-11-54-27.bpo-45953.2znR0E.rsthttps://github.com/python/cpython/pull/29883/files#diff-9e056da60286dda3238500364b65e307ecb07103ef15b4080a1f257d0d61651c
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Misc/NEWS.d/next/Core%20and%20Builtins/2021-12-01-11-54-27.bpo-45953.2znR0E.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
Modules/signalmodule.chttps://github.com/python/cpython/pull/29883/files#diff-99fb04b208835118fdca0d54b76a00c450da3eaff09d2b53e8a03d63bbe88e30
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Modules/signalmodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29883/files#diff-99fb04b208835118fdca0d54b76a00c450da3eaff09d2b53e8a03d63bbe88e30
https://github.com/python/cpython/pull/29883/files#diff-99fb04b208835118fdca0d54b76a00c450da3eaff09d2b53e8a03d63bbe88e30
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L222
Python/ceval.chttps://github.com/python/cpython/pull/29883/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Python/ceval.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29883/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/29883/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L311
Python/pystate.chttps://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
View file https://github.com/ericsnowcurrently/cpython/blob/a6a647167f389ffa107d40de70704929efab2bb2/Python/pystate.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/29883/{{ revealButtonHref }}
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
https://github.com/python/cpython/pull/29883/files#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
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.