mirror of
https://github.com/python/cpython.git
synced 2026-07-05 09:19:49 -04:00
e236568c0e
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 362692852f)
Miscellaneous source files for the main Python shared library