gh-129185: Use PyMutex in tracemalloc (#129246)

This commit is contained in:
Victor Stinner 2025-01-24 11:25:24 +01:00 committed by GitHub
parent 36bb229933
commit c005ea4951
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 15 deletions

View file

@ -70,7 +70,7 @@ struct _tracemalloc_runtime_state {
PyMemAllocatorEx obj;
} allocators;
PyThread_type_lock tables_lock;
PyMutex tables_lock;
/* Size in bytes of currently traced memory.
Protected by TABLES_LOCK(). */
size_t traced_memory;