gh-128679: Fix tracemalloc.stop() race conditions (#128893)
tracemalloc_alloc(), tracemalloc_realloc(), tracemalloc_free(), _PyTraceMalloc_TraceRef() and _PyTraceMalloc_GetMemory() now check 'tracemalloc_config.tracing' after calling TABLES_LOCK(). _PyTraceMalloc_TraceRef() now always returns 0.
V
Victor Stinner committed
3193cb5ef87b77158d5c9bef99ae445cb82727de
Parent: 313b96e
Committed by GitHub <noreply@github.com>
on 1/16/2025, 12:53:18 PM