René's URL Explorer Experiment


Title: gh-158195: Do not hold the type lock during stop-the-world by nascheme · Pull Request #159972 · python/cpython · GitHub

Open Graph Title: gh-158195: Do not hold the type lock during stop-the-world by nascheme · Pull Request #159972 · python/cpython

X Title: gh-158195: Do not hold the type lock during stop-the-world by nascheme · Pull Request #159972 · python/cpython

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

Open Graph Description: Fixes the free-threaded deadlock described in gh-158195 by removing type-lock pinning. The type lock and class dict lock can now be released normally while a thread waits to stop the world, rather ...

X Description: Fixes the free-threaded deadlock described in gh-158195 by removing type-lock pinning. The type lock and class dict lock can now be released normally while a thread waits to stop the world, rather ...

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

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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:436137b9-46c7-98a2-6f48-92df0760c6c7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id92FC:2AF0D8:89C5A9:AC773A:6B021421
html-safe-nonce8aa6cabc0a64e64b51ee881e462227fb491395af0cf719b7f258b52b45be1c27
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkZDOjJBRjBEODo4OUM1QTk6QUM3NzNBOjZCMDIxNDIxIiwidmlzaXRvcl9pZCI6Ijg3Njc4NTAwNjIwOTQxNDQ1NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc38c3a38140aef1bf6d4ff14d9f91a33ff05d0a9d8d6ae40ae1b909322eaf1e1
hovercard-subject-tagpull_request:4943619362
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/159972/commits
twitter:imagehttps://opengraph.githubassets.com/49163f53939f547d1730a42094df7b3ec2ddd8a0f45aa94131297614a8731920/python/cpython/pull/159972
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/49163f53939f547d1730a42094df7b3ec2ddd8a0f45aa94131297614a8731920/python/cpython/pull/159972
og:image:altFixes the free-threaded deadlock described in gh-158195 by removing type-lock pinning. The type lock and class dict lock can now be released normally while a thread waits to stop the world, rather ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenascheme
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/159972/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159972%2Fcommits
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%2F159972%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/159972/commits
Reloadhttps://github.com/python/cpython/pull/159972/commits
Reloadhttps://github.com/python/cpython/pull/159972/commits
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
https://github.com/python/cpython
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:gh-158195-unpin-type-lockhttps://github.com/nascheme/cpython/tree/gh-158195-unpin-type-lock
Conversationhttps://github.com/python/cpython/pull/159972
Commits19 (19)https://github.com/python/cpython/pull/159972/commits
Checkshttps://github.com/python/cpython/pull/159972/checks
Files changedhttps://github.com/python/cpython/pull/159972/files
gh-158195: Do not hold the type lock during stop-the-worldhttps://github.com/python/cpython/pull/159972/commits#top
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:gh-158195-unpin-type-lockhttps://github.com/nascheme/cpython/tree/gh-158195-unpin-type-lock
gh-158195: Do not hold the type lock during stop-the-worldhttps://github.com/python/cpython/pull/159972/commits/672c9a16272733ec2c6d050ed78a58b0b91efbb1
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
672c9a1https://github.com/python/cpython/pull/159972/commits/672c9a16272733ec2c6d050ed78a58b0b91efbb1
https://github.com/python/cpython/tree/672c9a16272733ec2c6d050ed78a58b0b91efbb1
Replace int pointer with int and bool option.https://github.com/python/cpython/pull/159972/commits/45823fae965603df9f885458bafeb712126b041a
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
45823fahttps://github.com/python/cpython/pull/159972/commits/45823fae965603df9f885458bafeb712126b041a
https://github.com/python/cpython/tree/45823fae965603df9f885458bafeb712126b041a
Strengthen type-lock regression tests and reduce their costhttps://github.com/python/cpython/pull/159972/commits/1951c50d8e002e234b5f01c8e4bdcca0521781ca
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
1951c50https://github.com/python/cpython/pull/159972/commits/1951c50d8e002e234b5f01c8e4bdcca0521781ca
https://github.com/python/cpython/tree/1951c50d8e002e234b5f01c8e4bdcca0521781ca
Enable deferred refcounting only on the stored MROhttps://github.com/python/cpython/pull/159972/commits/167ed1801de65e835020a8f254a853cb7e87a600
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
167ed18https://github.com/python/cpython/pull/159972/commits/167ed1801de65e835020a8f254a853cb7e87a600
https://github.com/python/cpython/tree/167ed1801de65e835020a8f254a853cb7e87a600
Store a private copy of the assigned __bases__ tuplehttps://github.com/python/cpython/pull/159972/commits/be1b1fd0cdb69d2435862b7a4a0fba65bf262878
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
be1b1fdhttps://github.com/python/cpython/pull/159972/commits/be1b1fd0cdb69d2435862b7a4a0fba65bf262878
https://github.com/python/cpython/tree/be1b1fd0cdb69d2435862b7a4a0fba65bf262878
Invalidate type version tags before dropping queue referenceshttps://github.com/python/cpython/pull/159972/commits/8ca6ee8b09a84fb1ff6908769b4350a2fd69a777
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
8ca6ee8https://github.com/python/cpython/pull/159972/commits/8ca6ee8b09a84fb1ff6908769b4350a2fd69a777
https://github.com/python/cpython/tree/8ca6ee8b09a84fb1ff6908769b4350a2fd69a777
Cleanup try_set_tp_bases() and try_set_tp_mro()https://github.com/python/cpython/pull/159972/commits/5f92ab052839f4b380d479d8088aaf63ec902a0e
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
5f92ab0https://github.com/python/cpython/pull/159972/commits/5f92ab052839f4b380d479d8088aaf63ec902a0e
https://github.com/python/cpython/tree/5f92ab052839f4b380d479d8088aaf63ec902a0e
Correct the comment on type_validate_new_bases()https://github.com/python/cpython/pull/159972/commits/7917d6aa5d68974a626ca95064c780a4876ee1c3
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
7917d6ahttps://github.com/python/cpython/pull/159972/commits/7917d6aa5d68974a626ca95064c780a4876ee1c3
https://github.com/python/cpython/tree/7917d6aa5d68974a626ca95064c780a4876ee1c3
Minor comments cleanup, reduce.https://github.com/python/cpython/pull/159972/commits/2aca6d5aeba49f6902b77eff04412e19e83735b0
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
2aca6d5https://github.com/python/cpython/pull/159972/commits/2aca6d5aeba49f6902b77eff04412e19e83735b0
https://github.com/python/cpython/tree/2aca6d5aeba49f6902b77eff04412e19e83735b0
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-lockhttps://github.com/python/cpython/pull/159972/commits/c7ac4e7445d52a113a06d3d8bc57c32db1998977
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
c7ac4e7https://github.com/python/cpython/pull/159972/commits/c7ac4e7445d52a113a06d3d8bc57c32db1998977
https://github.com/python/cpython/tree/c7ac4e7445d52a113a06d3d8bc57c32db1998977
Avoid looping if mro() assigns a slot.https://github.com/python/cpython/pull/159972/commits/8b8a87c2a32d0f94af541b97ee83b7c3c44f5a5e
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
8b8a87chttps://github.com/python/cpython/pull/159972/commits/8b8a87c2a32d0f94af541b97ee83b7c3c44f5a5e
https://github.com/python/cpython/tree/8b8a87c2a32d0f94af541b97ee83b7c3c44f5a5e
Copy str subclass keys of the class namespace to exact str.https://github.com/python/cpython/pull/159972/commits/04afc4ddd4e27295f47ca67ca666c0f19af63b0c
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
04afc4dhttps://github.com/python/cpython/pull/159972/commits/04afc4ddd4e27295f47ca67ca666c0f19af63b0c
https://github.com/python/cpython/tree/04afc4ddd4e27295f47ca67ca666c0f19af63b0c
Do type slot and __bases__ updates in a single stop-the-world.https://github.com/python/cpython/pull/159972/commits/8770238b278756863432e01152ad050d677ceb11
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
8770238https://github.com/python/cpython/pull/159972/commits/8770238b278756863432e01152ad050d677ceb11
https://github.com/python/cpython/tree/8770238b278756863432e01152ad050d677ceb11
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-lockhttps://github.com/python/cpython/pull/159972/commits/568732011a2c24a5bcb2c54fc256bd360f71a9fc
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
5687320https://github.com/python/cpython/pull/159972/commits/568732011a2c24a5bcb2c54fc256bd360f71a9fc
https://github.com/python/cpython/tree/568732011a2c24a5bcb2c54fc256bd360f71a9fc
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-lockhttps://github.com/python/cpython/pull/159972/commits/b5fab45db3744781ff65c28416b2d30b214a4eb5
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
b5fab45https://github.com/python/cpython/pull/159972/commits/b5fab45db3744781ff65c28416b2d30b214a4eb5
https://github.com/python/cpython/tree/b5fab45db3744781ff65c28416b2d30b214a4eb5
Address review suggestionshttps://github.com/python/cpython/pull/159972/commits/1fc90df8afd6a37f947ae6315988089449f47f6c
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
1fc90dfhttps://github.com/python/cpython/pull/159972/commits/1fc90df8afd6a37f947ae6315988089449f47f6c
https://github.com/python/cpython/tree/1fc90df8afd6a37f947ae6315988089449f47f6c
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-lockhttps://github.com/python/cpython/pull/159972/commits/d06b4afb218cef344f4c28d5d9fa5818caac9c3f
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
d06b4afhttps://github.com/python/cpython/pull/159972/commits/d06b4afb218cef344f4c28d5d9fa5818caac9c3f
https://github.com/python/cpython/tree/d06b4afb218cef344f4c28d5d9fa5818caac9c3f
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-lockhttps://github.com/python/cpython/pull/159972/commits/a26384d8978828e99b64f13ba831f70e8e3aaef7
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
a26384dhttps://github.com/python/cpython/pull/159972/commits/a26384d8978828e99b64f13ba831f70e8e3aaef7
https://github.com/python/cpython/tree/a26384d8978828e99b64f13ba831f70e8e3aaef7
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-lockhttps://github.com/python/cpython/pull/159972/commits/4f369b3aca5d7201605cc2a16d8a806527c35123
https://github.com/nascheme
naschemehttps://github.com/python/cpython/commits?author=nascheme
4f369b3https://github.com/python/cpython/pull/159972/commits/4f369b3aca5d7201605cc2a16d8a806527c35123
https://github.com/python/cpython/tree/4f369b3aca5d7201605cc2a16d8a806527c35123
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.