Title: Improve Interpreter Isolation · Issue #100227 · python/cpython · GitHub
Open Graph Title: Improve Interpreter Isolation · Issue #100227 · python/cpython
X Title: Improve Interpreter Isolation · Issue #100227 · python/cpython
Description: In CPython, we store (persistent) runtime data in several locations. (See https://github.com/ericsnowcurrently/multi-core-python/wiki/3-CPython's-Runtime#cpythons-run-time-data.) The state of each interpreter (PyInterpreterState) encapsu...
Open Graph Description: In CPython, we store (persistent) runtime data in several locations. (See https://github.com/ericsnowcurrently/multi-core-python/wiki/3-CPython's-Runtime#cpythons-run-time-data.) The state of each ...
X Description: In CPython, we store (persistent) runtime data in several locations. (See https://github.com/ericsnowcurrently/multi-core-python/wiki/3-CPython's-Runtime#cpythons-run-time-data.) The state of e...
Opengraph URL: https://github.com/python/cpython/issues/100227
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve Interpreter Isolation","articleBody":"In CPython, we store (persistent) runtime data in several locations. (See https://github.com/ericsnowcurrently/multi-core-python/wiki/3-CPython's-Runtime#cpythons-run-time-data.)\r\n\r\nThe state of each interpreter (`PyInterpreterState`) encapsulates the data which is unique to that interpreter and isolated from other interpreters. That isolation is important for the proper operation of multiple interpreters in a process, and will be critical for a per-interpreter GIL, AKA PEP 684 (assuming it gets approved). There are still a number of gaps in isolation which we will address here.\r\n\r\nThe deficiencies may be categorized by the following:\r\n\r\n* shared runtime state (`_PyRuntimeState`) conceptually better suited to each interpreter\r\n* shared runtime state currently protected by the GIL\r\n* shared global variables that shouldn't be shared\r\n* shared global variables currently protected by the GIL\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-100262\n* gh-101941\n* gh-102331\n* gh-102333\n* gh-102334\n* gh-102335\n* gh-102338\n* gh-102339\n* gh-102682\n* gh-102858\n* gh-102925\n* gh-102938\n* gh-103063\n* gh-103084\n* gh-103150\n* gh-103315\n* gh-103460\n* gh-103794\n* gh-105470\n* gh-105514\n* gh-105515\n* gh-105516\n* gh-105517\n* gh-105525\n* gh-105532\n* gh-105619\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ericsnowcurrently","@type":"Person","name":"ericsnowcurrently"},"datePublished":"2022-12-14T00:09:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/100227/cpython/issues/100227"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e8819ce4-d678-52f6-b9f7-8dab72cdec34 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC1E:36C7A:F1152E:1423625:696991EA |
| html-safe-nonce | dd2cdcf180bdbdd013f678ca38b58a0fa4be771a9b2ffcfc9de1ae367983884d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzFFOjM2QzdBOkYxMTUyRToxNDIzNjI1OjY5Njk5MUVBIiwidmlzaXRvcl9pZCI6IjgwODY3ODQzODkxMzI0MjM2NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6a0d315a5b81c9c0507f167da3ced6c618de4f6bf61446e80b350aabc713c2ef |
| hovercard-subject-tag | issue:1495359092 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/100227/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1cdb16f1530ac8fb98cb19be091635709da9d204e91afc7894b1449536bc5d15/python/cpython/issues/100227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1cdb16f1530ac8fb98cb19be091635709da9d204e91afc7894b1449536bc5d15/python/cpython/issues/100227 |
| og:image:alt | In CPython, we store (persistent) runtime data in several locations. (See https://github.com/ericsnowcurrently/multi-core-python/wiki/3-CPython's-Runtime#cpythons-run-time-data.) The state of each ... |
| 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 | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width