-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Convert _ctypes extension module to multi-phase init #117142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could anyone add this open issue to the base issue's todo ( |
@encukou, this is done now, right? |
I'll wait for more green buildbots before merging the 3.13 backport. Then it'll be done :) |
Unless I was looking at an old main HEAD, CC @neonene |
In my understanding of #117181 (comment), the Issue #55124 in 2011 has an experimantal patch: https://bugs.python.org/file20417/gilstateinterp.patch |
Also mmap-based closure allocation needs a mutex, and I don't know how thread-safe the libffi API is. There might be other things. |
FYI, |
Regarding mmap and libffi, aren't those resolved for free-threading builds? |
Feature or enhancement
Proposal:
This issue is available to keep track of PRs, following the heap type conversion completed at #114314.
TODO:
[ ] Makerejectedfree_list
inmalloc_closure.c
per-module variables.StgInfo
during a finalization: comment.Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED
(DONE): comment.FUTURE?:
Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
after a compatiblePyGILState_Ensure()
is introduced, see also the links below.Links to documents:
Links to previous discussion of this feature:
PyGILState_Ensure()
for sub-interpreters:_ctypes
patch (2011)Linked PRs
globals-to-fix.tsv
#117544The text was updated successfully, but these errors were encountered: