mirror of
https://github.com/python/cpython.git
synced 2026-01-27 21:25:12 +00:00
The `PyEval_SetProfileAllThreads` function and other related functions had a race condition on `tstate->c_profilefunc` that could lead to a crash when disable profiling or tracing on all threads while another thread is starting to profile or trace a a call. There are still potential crashes when threads exit concurrently with profiling or tracing be enabled/disabled across all threads. (cherry picked from commit 362692852f13cdd1d33cc7ed35c0cbac7af1a785)
Miscellaneous source files for the main Python shared library