| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:4e2a4a5f-7bd4-646b-5e56-07a322f6d156 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CBD0:20E170:58FB2B:7B4921:696A2548 |
| html-safe-nonce | ebcf2e18d75724c9f4380aa14e889e3b22d8c87330fa3de74b7852f8456b6ba5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkQwOjIwRTE3MDo1OEZCMkI6N0I0OTIxOjY5NkEyNTQ4IiwidmlzaXRvcl9pZCI6IjY4NzI5ODkxOTIwNTI5NDIxNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d0fb31a90a229e7ba36354f067620b46989159fa73e45b536de3551f0c1ef127 |
| hovercard-subject-tag | pull_request:1210535347 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/101161/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/4d9e8cbf6ba0b0e9f55803096e1e2ede0471a3233eca30a0b871c8a08dc9b6f7/python/cpython/pull/101161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d9e8cbf6ba0b0e9f55803096e1e2ede0471a3233eca30a0b871c8a08dc9b6f7/python/cpython/pull/101161 |
| og:image:alt | The objective of this change is to help make the GILState-related code easier to understand. This mostly involves moving code around and some semantically equivalent refactors. However, there are... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericsnowcurrently |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/101161#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101161 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F101161 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/101161 |
| Reload | https://github.com/python/cpython/pull/101161 |
| Reload | https://github.com/python/cpython/pull/101161 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/101161 |
|
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 page | https://github.com/python/cpython/pull/101161 |
|
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 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 |
| Jump to bottom | https://github.com/python/cpython/pull/101161#issue-comment-box |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| python:main | https://github.com/python/cpython/tree/main |
| ericsnowcurrently:gilstate-cleanup-2 | https://github.com/ericsnowcurrently/cpython/tree/gilstate-cleanup-2 |
|
gh-59956: Clarify GILState-related Code
| https://github.com/python/cpython/pull/101161#top |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| python:main | https://github.com/python/cpython/tree/main |
| ericsnowcurrently:gilstate-cleanup-2 | https://github.com/ericsnowcurrently/cpython/tree/gilstate-cleanup-2 |
|
Conversation
1
| https://github.com/python/cpython/pull/101161 |
|
Commits
11
| https://github.com/python/cpython/pull/101161/commits |
|
Checks
0
| https://github.com/python/cpython/pull/101161/checks |
|
Files changed
| https://github.com/python/cpython/pull/101161/files |
| Please reload this page | https://github.com/python/cpython/pull/101161 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
|
| https://github.com/ericsnowcurrently |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#issue-1549701984 |
| Please reload this page | https://github.com/python/cpython/pull/101161 |
| 6281edb | https://github.com/python/cpython/commit/6281edb2c5d42150b413ae89df9d0e4b68eaf8f3 |
| 4af2ecb | https://github.com/python/cpython/commit/4af2ecbe2e2881d003ef59645271850230bc8d75 |
| 7bdf5a4 | https://github.com/python/cpython/commit/7bdf5a41afee01fd20c26ef2237c8fe6d261c245 |
| 7bdf5a4 | https://github.com/python/cpython/commit/7bdf5a41afee01fd20c26ef2237c8fe6d261c245 |
| [subinterpreters] Make the PyGILState API compatible with subinterpreters #59956 | https://github.com/python/cpython/issues/59956 |
| Please reload this page | https://github.com/python/cpython/pull/101161 |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| January 19, 2023 08:38 | https://github.com/python/cpython/pull/101161#commits-pushed-c35aee5 |
|
| https://github.com/ericsnowcurrently |
| Add some TODO comments. | https://github.com/python/cpython/pull/101161/commits/c35aee5f81d04e7d5a73f41054da9e95bd0d55be |
| c35aee5 | https://github.com/python/cpython/pull/101161/commits/c35aee5f81d04e7d5a73f41054da9e95bd0d55be |
|
| https://github.com/ericsnowcurrently |
| Factor out "current_tss" helpers. | https://github.com/python/cpython/pull/101161/commits/bb86c59af215f67c1e81b86872ae7f0701c1768a |
| bb86c59 | https://github.com/python/cpython/pull/101161/commits/bb86c59af215f67c1e81b86872ae7f0701c1768a |
|
| https://github.com/ericsnowcurrently |
| Inline the current_tss helpers. | https://github.com/python/cpython/pull/101161/commits/5903b39ff79280a4196e5ef55576a05c772685b5 |
| 5903b39 | https://github.com/python/cpython/pull/101161/commits/5903b39ff79280a4196e5ef55576a05c772685b5 |
|
| https://github.com/ericsnowcurrently |
| Factor out "current_fast" helpers. | https://github.com/python/cpython/pull/101161/commits/a5eb3d86fc0e9153fe6693ff96ee84edf861c1e1 |
| a5eb3d8 | https://github.com/python/cpython/pull/101161/commits/a5eb3d86fc0e9153fe6693ff96ee84edf861c1e1 |
|
| https://github.com/ericsnowcurrently |
| Move tstate_current out of _PyRuntimeState.gilstate. | https://github.com/python/cpython/pull/101161/commits/6281edb2c5d42150b413ae89df9d0e4b68eaf8f3 |
| 6281edb | https://github.com/python/cpython/pull/101161/commits/6281edb2c5d42150b413ae89df9d0e4b68eaf8f3 |
|
| https://github.com/ericsnowcurrently |
| Do not use _PyThreadState_GET() in pystate.c. | https://github.com/python/cpython/pull/101161/commits/2f8aaecba9ff4a6cd975d730b9bfdc5dfe7b7b89 |
| 2f8aaec | https://github.com/python/cpython/pull/101161/commits/2f8aaecba9ff4a6cd975d730b9bfdc5dfe7b7b89 |
|
| https://github.com/ericsnowcurrently |
| Move autoTSSkey out of _PyRuntimeState.gilstate. | https://github.com/python/cpython/pull/101161/commits/4af2ecbe2e2881d003ef59645271850230bc8d75 |
| 4af2ecb | https://github.com/python/cpython/pull/101161/commits/4af2ecbe2e2881d003ef59645271850230bc8d75 |
|
| https://github.com/ericsnowcurrently |
| Initialize autoTSSkey earlier. | https://github.com/python/cpython/pull/101161/commits/7bdf5a41afee01fd20c26ef2237c8fe6d261c245 |
| 7bdf5a4 | https://github.com/python/cpython/pull/101161/commits/7bdf5a41afee01fd20c26ef2237c8fe6d261c245 |
|
| https://github.com/ericsnowcurrently |
| Factor out bind_tstate() and unbind_tstate(). | https://github.com/python/cpython/pull/101161/commits/4b952e03444b71708800a7590eb89739b5db021f |
| 4b952e0 | https://github.com/python/cpython/pull/101161/commits/4b952e03444b71708800a7590eb89739b5db021f |
|
| https://github.com/ericsnowcurrently |
| PyThreadState_IsCurrent() -> holds_gil(). | https://github.com/python/cpython/pull/101161/commits/5e7283c786a38c9bfd2154a7a2d6c16b464ab5f5 |
| 5e7283c | https://github.com/python/cpython/pull/101161/commits/5e7283c786a38c9bfd2154a7a2d6c16b464ab5f5 |
| https://github.com/ericsnowcurrently |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#event-8314888849 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#event-8314889330 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
Jan 19, 2023
| https://github.com/python/cpython/pull/101161#ref-issue-1198887438 |
|
[subinterpreters] Make the PyGILState API compatible with subinterpreters
#59956
| https://github.com/python/cpython/issues/59956 |
|
| https://github.com/ericsnowcurrently |
| Do not set PyThreadState.thread_id to a negative value. | https://github.com/python/cpython/pull/101161/commits/57bd92e359a00594fb8ba93fff414d30f26488a2 |
| 57bd92e | https://github.com/python/cpython/pull/101161/commits/57bd92e359a00594fb8ba93fff414d30f26488a2 |
| https://github.com/ericsnowcurrently |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
|
🔨 test-with-buildbots
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22 |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#event-8315570135 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#issuecomment-1397510377 |
| @ericsnowcurrently | https://github.com/ericsnowcurrently |
| 57bd92e | https://github.com/python/cpython/commit/57bd92e359a00594fb8ba93fff414d30f26488a2 |
| Please reload this page | https://github.com/python/cpython/pull/101161 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
🔨 test-with-buildbots
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22 |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#event-8315570707 |
| https://github.com/ericsnowcurrently |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| 6036c3e | https://github.com/python/cpython/commit/6036c3e856f033bf13e929536e7bf127fdd921c9 |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#event-8316969611 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Jan 19, 2023 | https://github.com/python/cpython/pull/101161#event-8316969804 |
| https://github.com/ericsnowcurrently |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| January 19, 2023 23:04 | https://github.com/python/cpython/pull/101161#event-8316969922 |
| https://github.com/ericsnowcurrently |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
|
Jan 19, 2023
| https://github.com/python/cpython/pull/101161#ref-pullrequest-1550105318 |
|
gh-59956: Fix Function Groupings in pystate.c
#101172
| https://github.com/python/cpython/pull/101172 |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
|
Jan 20, 2023
| https://github.com/python/cpython/pull/101161#ref-commit-f30c940 |
|
| https://github.com/ericsnowcurrently |
| gh-59956 | https://github.com/python/cpython/issues/59956 |
| : Fix Function Groupings in pystate.c ( | https://github.com/python/cpython/commit/f30c94024f305d7d0ebb34fdd0f422442cfb0047 |
| gh-101172 | https://github.com/python/cpython/pull/101172 |
| ) | https://github.com/python/cpython/commit/f30c94024f305d7d0ebb34fdd0f422442cfb0047 |
| f30c940 | https://github.com/python/cpython/commit/f30c94024f305d7d0ebb34fdd0f422442cfb0047 |
| gh-101161 | https://github.com/python/cpython/pull/101161 |
| #59956 | https://github.com/python/cpython/issues/59956 |
| https://github.com/The-Compiler |
| The-Compiler | https://github.com/The-Compiler |
|
Jun 12, 2023
| https://github.com/python/cpython/pull/101161#ref-issue-1752736136 |
|
3.12: "Python memory allocator called without holding the GIL" with PyMem_Free as Py_AtExit
#105690
| https://github.com/python/cpython/issues/105690 |
| https://github.com/rgommers |
| rgommers | https://github.com/rgommers |
|
Apr 20, 2025
| https://github.com/python/cpython/pull/101161#ref-issue-3006569550 |
|
BUG: crash in python-dbg CI job due to calling Python C API without holding the GIL
scipy/scipy#22860
| https://github.com/scipy/scipy/issues/22860 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101161 |
|
skip news
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22 |
| Please reload this page | https://github.com/python/cpython/pull/101161 |
|
| https://github.com/ericsnowcurrently |
|
| https://github.com/bedevere-bot |
|
| 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 |