You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modules/_lsprof.c is not thread-safe without the GIL. I think per-profiler locks won't be efficient and would limit the usefulness for profiling multithreaded programs in the free threading builds.
Activity
colesbury commentedon Oct 9, 2024
Modules/_lsprof.cis not thread-safe without the GIL. I think per-profiler locks won't be efficient and would limit the usefulness for profiling multithreaded programs in the free threading builds.As a first step, I think we should probably:
Py_MOD_GIL_NOT_USEDfrom_lsprof.cThen we can figure out how to make it thread-safe and efficient.
Zheaoli commentedon Oct 16, 2024
I would like to follow up this issue if there is no one working on it.
kumaraditya303 commentedon Sep 13, 2025
Fixed by #138229
Output on current main: