| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Actually, we'll need a separate fix for subinterpreters on 3.12, because there's no PyMutex there. |
Sorry, something went wrong.
…BcDse.rst Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
The regular build (not Free Threaded build) is not affected by #126316 since function calls are serialized by the GIL. |
Sorry, something went wrong.
|
Yeah, but a subinterpreter can have its own GIL, so if these functions aren't thread safe on a system level, then it won't be thread safe across multiple interpreters. I think we just need to add a Py_mod_multiple_interpreters module slot with Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED, to indicate that subinterpreters need to use a shared GIL to use the module. |
Sorry, something went wrong.
My change only fix free-threaded build. Should I also change the regular build for this use case? |
Sorry, something went wrong.
|
On second thought, I think we should address subinterpreters in another PR for backporting reasons. The fix is what I said with the module slot above. |
Sorry, something went wrong.
|
#127055 was merged instead. I close this issue. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.