gh-126316: Use mutexes in the grp module#126504
gh-126316: Use mutexes in the grp module#126504vstinner wants to merge 2 commits intopython:mainfrom
Conversation
Misc/NEWS.d/next/Library/2024-11-06-15-23-29.gh-issue-126316.xBcDse.rst
Outdated
Show resolved
Hide resolved
|
Actually, we'll need a separate fix for subinterpreters on 3.12, because there's no |
…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. |
|
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 |
My change only fix free-threaded build. Should I also change the regular build for this use case? |
|
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. |
|
#127055 was merged instead. I close this issue. |
grpis not thread safe #126316