mirror of
https://github.com/python/cpython.git
synced 2026-08-03 13:26:41 +08:00
gh-144763: Fix race conditions in tracemalloc (#144779) Avoid PyUnstable_InterpreterFrame_GetLine() since it uses a critical section which can lead to a deadlock. _PyTraceMalloc_Stop() now also calls PyRefTracer_SetTracer() without holding TABLES_LOCK() to prevent another deadlock. (cherry picked from commit 83f4fffe3d78ba368c0d4864c42c7c9c9223f7d1) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miscellaneous source files for the main Python shared library