Title: Convert _ctypes extension module to multi-phase init · Issue #117142 · python/cpython · GitHub
Open Graph Title: Convert _ctypes extension module to multi-phase init · Issue #117142 · python/cpython
X Title: Convert _ctypes extension module to multi-phase init · Issue #117142 · python/cpython
Description: Feature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module variables. rejected Fix intentional memory le...
Open Graph Description: Feature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module varia...
X Description: Feature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module varia...
Opengraph URL: https://github.com/python/cpython/issues/117142
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Convert _ctypes extension module to multi-phase init","articleBody":"# Feature or enhancement\r\n\r\n### Proposal:\r\n\r\nThis issue is available to keep track of PRs, following the heap type conversion completed at #114314.\r\n\r\n### TODO:\r\n- ~[ ] Make `free_list` in `malloc_closure.c` per-module variables.~ [rejected](https://github.com/python/cpython/pull/117874#issuecomment-2096089529)\r\n- [x] Fix intentional memory leaks of `StgInfo` during a finalization: [comment](https://github.com/python/cpython/pull/117181#issuecomment-2029764312).\r\n- [x] Enable `Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED`(DONE): [comment](https://github.com/python/cpython/pull/117181#discussion_r1557516762).\r\nFUTURE?: `Py_MOD_PER_INTERPRETER_GIL_SUPPORTED` after a compatible `PyGILState_Ensure()` is introduced, see also the links below.\r\n\r\n\r\n### Links to documents:\r\n\r\n* [**libffi: a foreign function interface library**](https://gensoft.pasteur.fr/docs/libffi/3.3/libffi.pdf)\r\n* [**libffi - GitHub**](https://github.com/libffi/libffi)\r\n\r\n### Links to previous discussion of this feature:\r\n\r\n* #103092\r\n* #114314\r\n* **`PyGILState_Ensure()`** for sub-interpreters:\r\n * #59956\r\n * #55124\r\n * [`_ctypes` patch](https://bugs.python.org/file20417/gilstateinterp.patch) (2011)\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-117143\r\n* gh-117181\r\n* gh-117189\r\n* gh-117544\r\n* gh-117874\r\n* gh-117875\r\n* gh-118139\r\n* gh-119424\r\n* gh-119468\r\n* gh-119991\n* gh-120008\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/neonene","@type":"Person","name":"neonene"},"datePublished":"2024-03-22T00:03:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/117142/cpython/issues/117142"}
| 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:3af745cb-3660-0a44-2fa7-2e2ac2865389 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9FC:9D4F4:DA7C23:12BDA37:6969ED52 |
| html-safe-nonce | a927edec684cf29057bf2e1a73c4a92e2183fbfd0359f0a23b8643e2c2a2e496 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUZDOjlENEY0OkRBN0MyMzoxMkJEQTM3OjY5NjlFRDUyIiwidmlzaXRvcl9pZCI6IjQ4NTg2NTgxMjAxNjM1MTk4MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aaa62bc102853e524f6a735c9399eef249511581add82cafe806726300d01279 |
| hovercard-subject-tag | issue:2201423424 |
| 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/117142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a994271de6374398224b24f28ba58c4e858cf15038268ba0e7a0206081a1e46/python/cpython/issues/117142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a994271de6374398224b24f28ba58c4e858cf15038268ba0e7a0206081a1e46/python/cpython/issues/117142 |
| og:image:alt | Feature or enhancement Proposal: This issue is available to keep track of PRs, following the heap type conversion completed at #114314. TODO: [ ] Make free_list in malloc_closure.c per-module varia... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | neonene |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width