Lines Matching refs:old_size

780 static int zend_mm_chunk_truncate(zend_mm_heap *heap, void *addr, size_t old_size, size_t new_size)  argument
785 return heap->storage->handlers.chunk_truncate(heap->storage, addr, old_size, new_size);
792 zend_mm_munmap((char*)addr + new_size, old_size - new_size);
799 static int zend_mm_chunk_extend(zend_mm_heap *heap, void *addr, size_t old_size, size_t new_size) argument
804 return heap->storage->handlers.chunk_extend(heap->storage, addr, old_size, new_size);
811 return (zend_mm_mmap_fixed((char*)addr + old_size, new_size - old_size) != NULL);
1464 size_t old_size; local
1470old_size = zend_mm_get_huge_block_size(heap, ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY…
1488 if (new_size == old_size) {
1495 } else if (new_size < old_size) {
1497 if (zend_mm_chunk_truncate(heap, ptr, old_size, new_size)) {
1499 heap->real_size -= old_size - new_size;
1502 heap->size -= old_size - new_size;
1513 if (UNEXPECTED(new_size - old_size > heap->limit - heap->real_size)) {
1514 if (zend_mm_gc(heap) && new_size - old_size <= heap->limit - heap->real_size) {
1527 if (zend_mm_chunk_extend(heap, ptr, old_size, new_size)) {
1529 heap->real_size += new_size - old_size;
1533 heap->size += new_size - old_size;
1546 …return zend_mm_realloc_slow(heap, ptr, size, MIN(old_size, copy_size) ZEND_FILE_LINE_RELAY_CC ZEND…
1552 size_t old_size; local
1581 old_size = bin_data_size[old_bin_num];
1584 if (size <= old_size) {
1605 copy_size = use_copy_size ? MIN(old_size, copy_size) : old_size;
1631 old_size = ZEND_MM_LRUN_PAGES(info) * ZEND_MM_PAGE_SIZE;
1634 if (new_size == old_size) {
1644 } else if (new_size < old_size) {
1647 int rest_pages_count = (int)((old_size - new_size) / ZEND_MM_PAGE_SIZE);
1666 int old_pages_count = (int)(old_size / ZEND_MM_PAGE_SIZE);
1673 size_t size = heap->size + (new_size - old_size);
1700 copy_size = MIN(old_size, copy_size);