SIGN IN SIGN UP

bpo-40609: _tracemalloc allocates traces (GH-20064)

Rewrite _tracemalloc to store "trace_t*" rather than directly
"trace_t" in traces hash tables. Traces are now allocated on the heap
memory, outside the hash table.

Add tracemalloc_copy_traces() and tracemalloc_copy_domains() helper
functions.

Remove _Py_hashtable_copy() function since there is no API to copy a
key or a value.

Remove also _Py_hashtable_delete() function which was commented.
V
Victor Stinner committed
d95bd4214c2babe851b02562d973d60c02e639b7
Parent: 2d0a3d6
Committed by GitHub <noreply@github.com> on 5/13/2020, 1:52:11 AM