mirror of
https://github.com/python/cpython.git
synced 2026-05-07 05:01:13 -04:00
fc6bc1e4e3
Since tracemalloc uses PyMutex, it becomes safe to use TABLES_LOCK() even after _PyTraceMalloc_Fini(): remove the "pre-check" in PyTraceMalloc_Track() and PyTraceMalloc_Untrack(). PyTraceMalloc_Untrack() no longer needs to acquire the GIL. _PyTraceMalloc_Fini() can be called earlier during Python finalization.
Miscellaneous source files for the main Python shared library