Searched refs:original_nbytes (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Objects/ |
D | obmalloc.c | 2148 size_t original_nbytes; in _PyMem_DebugRawRealloc() local 2157 original_nbytes = read_size_t(head); in _PyMem_DebugRawRealloc() 2164 tail = data + original_nbytes; in _PyMem_DebugRawRealloc() 2169 if (original_nbytes <= sizeof(save)) { in _PyMem_DebugRawRealloc() 2170 memcpy(save, data, original_nbytes); in _PyMem_DebugRawRealloc() 2171 memset(data - 2*SST, DEADBYTE, original_nbytes + 4*SST); in _PyMem_DebugRawRealloc() 2183 nbytes = original_nbytes; in _PyMem_DebugRawRealloc() 2201 if (original_nbytes <= sizeof(save)) { in _PyMem_DebugRawRealloc() 2202 memcpy(data, save, Py_MIN(nbytes, original_nbytes)); in _PyMem_DebugRawRealloc() 2205 size_t i = original_nbytes - ERASED_SIZE; in _PyMem_DebugRawRealloc() [all …]
|
/external/python/cpython2/Objects/ |
D | obmalloc.c | 1541 size_t original_nbytes; in _PyObject_DebugReallocApi() local 1549 original_nbytes = read_size_t(q - 2*SST); in _PyObject_DebugReallocApi() 1555 if (nbytes <= original_nbytes) { in _PyObject_DebugReallocApi() 1557 memset(q + nbytes, DEADBYTE, original_nbytes - nbytes + 2*SST); in _PyObject_DebugReallocApi() 1566 if (nbytes <= original_nbytes) { in _PyObject_DebugReallocApi() 1583 if (nbytes > original_nbytes) { in _PyObject_DebugReallocApi() 1585 memset(q + original_nbytes, CLEANBYTE, in _PyObject_DebugReallocApi() 1586 nbytes - original_nbytes); in _PyObject_DebugReallocApi()
|