Message304987
> Using nested _PyMem_DebugRawRealloc() looks suspicions to me. This may be a bug.
PyObject_Malloc() calls PyMem_RawMalloc() for allocations larger than 512 bytes.
When debug hooks are enabled, PyObject_Malloc() and PyMem_RawMalloc() both call _PyMem_DebugRawRealloc(). The behaviour that you saw is expected.
It was simpler to reuse _PyMem_DebugRawRealloc() PyObject and PyMem_Raw allocator families, rather than duplicating the code. |
|
Date |
User |
Action |
Args |
2017-10-25 13:55:11 | vstinner | set | recipients:
+ vstinner, larry, serhiy.storchaka, davin |
2017-10-25 13:55:11 | vstinner | set | messageid: <1508939711.92.0.213398074469.issue31626@psf.upfronthosting.co.za> |
2017-10-25 13:55:11 | vstinner | link | issue31626 messages |
2017-10-25 13:55:11 | vstinner | create | |
|