mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
On memory error, dump the memory block traceback
Issue #26564: _PyObject_DebugDumpAddress() now dumps the traceback where a memory block was allocated on memory block. Use the tracemalloc module to get the traceback.
This commit is contained in:
parent
af584a02a5
commit
0611c26a58
8 changed files with 126 additions and 19 deletions
|
@ -486,9 +486,9 @@ _Py_hashtable_copy(_Py_hashtable_t *src)
|
|||
void *data, *new_data;
|
||||
|
||||
dst = _Py_hashtable_new_full(src->data_size, src->num_buckets,
|
||||
src->hash_func, src->compare_func,
|
||||
src->copy_data_func, src->free_data_func,
|
||||
src->get_data_size_func, &src->alloc);
|
||||
src->hash_func, src->compare_func,
|
||||
src->copy_data_func, src->free_data_func,
|
||||
src->get_data_size_func, &src->alloc);
|
||||
if (dst == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue