Title: [WIP] bpo-39465: Optimize _PyInterpreterState_GET() by vstinner · Pull Request #20767 · python/cpython · GitHub
Open Graph Title: [WIP] bpo-39465: Optimize _PyInterpreterState_GET() by vstinner · Pull Request #20767 · python/cpython
X Title: [WIP] bpo-39465: Optimize _PyInterpreterState_GET() by vstinner · Pull Request #20767 · python/cpython
Description: Add _PyRuntimeState.gilstate.interp_current. _PyThreadState_Swap() now sets interp_current. PyThreadState_Swap(NULL) sets interp_current to NULL. Replace _PyThreadState_GET() with _PyInterpreterState_GET() in: get_small_int() gcmodule.c: add also get_gc_state() function _PyTrash_deposit_object() _PyTrash_destroy_chain() warnings_get_state() Py_GetRecursionLimit() https://bugs.python.org/issue39465
Open Graph Description: Add _PyRuntimeState.gilstate.interp_current. _PyThreadState_Swap() now sets interp_current. PyThreadState_Swap(NULL) sets interp_current to NULL. Replace _PyThreadState_GET() with _PyInterprete...
X Description: Add _PyRuntimeState.gilstate.interp_current. _PyThreadState_Swap() now sets interp_current. PyThreadState_Swap(NULL) sets interp_current to NULL. Replace _PyThreadState_GET() with _PyInterprete...
Opengraph URL: https://github.com/python/cpython/pull/20767
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:207a5378-23ee-7823-1066-ebdbbfd2b936 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A12C:1BA318:4A6B67:675BFF:696A0CDD |
| html-safe-nonce | 8e14de406fd170597758cd999f54abccd025d55f601b7e953214a6119e65e452 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTJDOjFCQTMxODo0QTZCNjc6Njc1QkZGOjY5NkEwQ0REIiwidmlzaXRvcl9pZCI6IjY3ODkwNjQ5NTg1OTU1OTY0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 631b1b0f9f80ec47e6f99a02abfff2a48ed4456e3b5bcfca0ad04a594da4ec10 |
| hovercard-subject-tag | pull_request:432087520 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/20767/checks |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Add _PyRuntimeState.gilstate.interp_current. _PyThreadState_Swap() now sets interp_current. PyThreadState_Swap(NULL) sets interp_current to NULL. Replace _PyThreadState_GET() with _PyInterprete... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width