mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-129185: Use PyMutex in tracemalloc (#129246)
This commit is contained in:
parent
36bb229933
commit
c005ea4951
2 changed files with 4 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue