Searched defs:old_size (Results 1 - 4 of 4) sorted by relevance

/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_alloc.c247 size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : 0; local
259 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size);
288 size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : 0; local
300 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent);
/PHP_TRUNK/ext/gmp/
H A Dgmp.c350 static void *gmp_erealloc(void *ptr, size_t old_size, size_t new_size) argument
/PHP_TRUNK/Zend/
H A Dzend_alloc.c1261 size_t old_size; local
1274 old_size = zend_mm_get_huge_block_size(heap, ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
1284 if (new_size == old_size) {
1292 } else if (new_size < old_size) {
1294 zend_mm_munmap((char*)ptr + new_size, old_size - new_size);
1296 heap->real_size -= old_size - new_size;
1299 heap->size -= old_size - new_size;
1307 } else /* if (new_size > old_size) */ {
1309 if (heap->real_size + (new_size - old_size) > heap->limit) {
1321 if (zend_mm_mmap_fixed((char*)ptr + old_size, new_siz
[all...]
H A Dzend_ast.c30 static inline void *zend_ast_realloc(void *old, size_t old_size, size_t new_size TSRMLS_DC) { argument
32 memcpy(new, old, old_size);

Completed in 10 milliseconds