| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:38ac6e2b-ce3a-4183-a333-11f5914f1636 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BFF4:16E4ED:420850:533D2D:6B01FD52 |
| html-safe-nonce | 4f0e67635cea7b680833afac285a42718c585d92359a691a5a5b9a4096ab2176 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkY0OjE2RTRFRDo0MjA4NTA6NTMzRDJEOjZCMDFGRDUyIiwidmlzaXRvcl9pZCI6Ijc5MzE1MTUxODgxOTU0OTExNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fe6d82b8a8c09c8281c3059f4dd3fc4f54cc1bd7a45b8d9f8fa6b83440dbf45d |
| hovercard-subject-tag | pull_request:4943619362 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/159972/files |
| twitter:image | https://avatars.githubusercontent.com/u/690853?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/690853?s=400&v=4 |
| og:image:alt | 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 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/159972/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159972%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159972%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 |
| Reload | https://github.com/python/cpython/pull/159972/files |
| Reload | https://github.com/python/cpython/pull/159972/files |
| Reload | https://github.com/python/cpython/pull/159972/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | 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/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| nascheme | https://github.com/nascheme |
| python:main | https://github.com/python/cpython/tree/main |
| nascheme:gh-158195-unpin-type-lock | https://github.com/nascheme/cpython/tree/gh-158195-unpin-type-lock |
|
Conversation
9
| https://github.com/python/cpython/pull/159972 |
|
Commits
19
| https://github.com/python/cpython/pull/159972/commits |
|
Checks
71
| https://github.com/python/cpython/pull/159972/checks |
|
Files changed
| https://github.com/python/cpython/pull/159972/files |
| Please reload this page | https://github.com/python/cpython/pull/159972/files |
|
gh-158195: Do not hold the type lock during stop-the-world
| https://github.com/python/cpython/pull/159972/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/159972/files |
|
672c9a1
gh-158195: Do not hold the type lock during stop-the-world
nascheme Oct 20, 2026
| https://github.com/python/cpython/pull/159972/commits/672c9a16272733ec2c6d050ed78a58b0b91efbb1 |
|
45823fa
Replace int pointer with int and bool option.
nascheme Oct 20, 2026
| https://github.com/python/cpython/pull/159972/commits/45823fae965603df9f885458bafeb712126b041a |
|
1951c50
Strengthen type-lock regression tests and reduce their cost
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/1951c50d8e002e234b5f01c8e4bdcca0521781ca |
|
167ed18
Enable deferred refcounting only on the stored MRO
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/167ed1801de65e835020a8f254a853cb7e87a600 |
|
be1b1fd
Store a private copy of the assigned __bases__ tuple
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/be1b1fd0cdb69d2435862b7a4a0fba65bf262878 |
|
8ca6ee8
Invalidate type version tags before dropping queue references
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/8ca6ee8b09a84fb1ff6908769b4350a2fd69a777 |
|
5f92ab0
Cleanup try_set_tp_bases() and try_set_tp_mro()
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/5f92ab052839f4b380d479d8088aaf63ec902a0e |
|
7917d6a
Correct the comment on type_validate_new_bases()
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/7917d6aa5d68974a626ca95064c780a4876ee1c3 |
|
2aca6d5
Minor comments cleanup, reduce.
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/2aca6d5aeba49f6902b77eff04412e19e83735b0 |
|
c7ac4e7
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-…
nascheme Oct 21, 2026
| https://github.com/python/cpython/pull/159972/commits/c7ac4e7445d52a113a06d3d8bc57c32db1998977 |
|
8b8a87c
Avoid looping if mro() assigns a slot.
nascheme Oct 23, 2026
| https://github.com/python/cpython/pull/159972/commits/8b8a87c2a32d0f94af541b97ee83b7c3c44f5a5e |
|
04afc4d
Copy str subclass keys of the class namespace to exact str.
nascheme Oct 24, 2026
| https://github.com/python/cpython/pull/159972/commits/04afc4ddd4e27295f47ca67ca666c0f19af63b0c |
|
8770238
Do type slot and __bases__ updates in a single stop-the-world.
nascheme Oct 24, 2026
| https://github.com/python/cpython/pull/159972/commits/8770238b278756863432e01152ad050d677ceb11 |
|
5687320
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-…
nascheme Oct 28, 2026
| https://github.com/python/cpython/pull/159972/commits/568732011a2c24a5bcb2c54fc256bd360f71a9fc |
|
b5fab45
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-…
nascheme Oct 28, 2026
| https://github.com/python/cpython/pull/159972/commits/b5fab45db3744781ff65c28416b2d30b214a4eb5 |
|
1fc90df
Address review suggestions
nascheme Oct 30, 2026
| https://github.com/python/cpython/pull/159972/commits/1fc90df8afd6a37f947ae6315988089449f47f6c |
|
d06b4af
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-…
nascheme Oct 30, 2026
| https://github.com/python/cpython/pull/159972/commits/d06b4afb218cef344f4c28d5d9fa5818caac9c3f |
|
a26384d
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-…
nascheme Nov 1, 2026
| https://github.com/python/cpython/pull/159972/commits/a26384d8978828e99b64f13ba831f70e8e3aaef7 |
|
4f369b3
Merge remote-tracking branch 'origin/main' into gh-158195-unpin-type-…
nascheme Nov 2, 2026
| https://github.com/python/cpython/pull/159972/commits/4f369b3aca5d7201605cc2a16d8a806527c35123 |
|
Clear filters
| https://github.com/python/cpython/pull/159972/files |
| Please reload this page | https://github.com/python/cpython/pull/159972/files |
| Please reload this page | https://github.com/python/cpython/pull/159972/files |
|
pycore_dict.h
| https://github.com/python/cpython/pull/159972/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
test_descr.py
| https://github.com/python/cpython/pull/159972/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b |
|
test_threading.py
| https://github.com/python/cpython/pull/159972/files#diff-be27d84769aae3c2f92edaf4dff2fc541f08e8d06450ab7e18cf01ad520a9f4e |
|
test_type.py
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
2026-10-20-10-00-00.gh-issue-158195.UnpinTL.rst
| https://github.com/python/cpython/pull/159972/files#diff-4281cc6f55c2e9720cf075f37dbf0ba2337a8f957d7d3c5b79058548a63b193e |
|
_testinternalcapi.c
| https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
dictobject.c
| https://github.com/python/cpython/pull/159972/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
typeobject.c
| https://github.com/python/cpython/pull/159972/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| Include/internal/pycore_dict.h | https://github.com/python/cpython/pull/159972/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
View file
| https://github.com/nascheme/cpython/blob/4f369b3aca5d7201605cc2a16d8a806527c35123/Include/internal/pycore_dict.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/159972/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/159972/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
| https://github.com/python/cpython/pull/159972/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
| Lib/test/test_descr.py | https://github.com/python/cpython/pull/159972/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b |
|
View file
| https://github.com/nascheme/cpython/blob/4f369b3aca5d7201605cc2a16d8a806527c35123/Lib/test/test_descr.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/159972/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/159972/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b |
|
| https://github.com/python/cpython/pull/159972/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b |
| Lib/test/test_free_threading/test_threading.py | https://github.com/python/cpython/pull/159972/files#diff-be27d84769aae3c2f92edaf4dff2fc541f08e8d06450ab7e18cf01ad520a9f4e |
|
View file
| https://github.com/nascheme/cpython/blob/4f369b3aca5d7201605cc2a16d8a806527c35123/Lib/test/test_free_threading/test_threading.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/159972/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/159972/files#diff-be27d84769aae3c2f92edaf4dff2fc541f08e8d06450ab7e18cf01ad520a9f4e |
|
| https://github.com/python/cpython/pull/159972/files#diff-be27d84769aae3c2f92edaf4dff2fc541f08e8d06450ab7e18cf01ad520a9f4e |
| Lib/test/test_free_threading/test_type.py | https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
View file
| https://github.com/nascheme/cpython/blob/4f369b3aca5d7201605cc2a16d8a806527c35123/Lib/test/test_free_threading/test_type.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/159972/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
|
| https://github.com/python/cpython/pull/159972/files#diff-3c426450792efb85491fe7c8888758e54cbef12bcc110ba6a1a460e400a3a901 |
| Misc/NEWS.d/next/Core_and_Builtins/2026-10-20-10-00-00.gh-issue-158195.UnpinTL.rst | https://github.com/python/cpython/pull/159972/files#diff-4281cc6f55c2e9720cf075f37dbf0ba2337a8f957d7d3c5b79058548a63b193e |
|
View file
| https://github.com/nascheme/cpython/blob/4f369b3aca5d7201605cc2a16d8a806527c35123/Misc/NEWS.d/next/Core_and_Builtins/2026-10-20-10-00-00.gh-issue-158195.UnpinTL.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/159972/{{ revealButtonHref }} |
| Modules/_testinternalcapi.c | https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
View file
| https://github.com/nascheme/cpython/blob/4f369b3aca5d7201605cc2a16d8a806527c35123/Modules/_testinternalcapi.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/159972/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/159972/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
| Please reload this page | https://github.com/python/cpython/pull/159972/files |
| Please reload this page | https://github.com/python/cpython/pull/159972/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |