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
|
@ -38,11 +38,11 @@ Py_Exit(int sts)
|
|||
}
|
||||
|
||||
#ifdef WITH_THREAD
|
||||
/* Needed by obmalloc.c */
|
||||
/* Functions needed by obmalloc.c */
|
||||
int PyGILState_Check(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
{ return 1; }
|
||||
void _PyMem_DumpTraceback(int fd, const void *ptr)
|
||||
{}
|
||||
#endif
|
||||
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue