Lines Matching refs:newSize
1392 size_t newSize)
1420 INFO(("realloc(address = %p, newSize = %" B_PRIuSIZE ")\n", address, newSize));
1456 newSize += sizeof(addr_t) + sizeof(heap_leak_check_info);
1459 if (newSize > minSize && newSize <= maxSize) {
1463 newSize -= sizeof(addr_t) + sizeof(heap_leak_check_info);
1467 info->size = newSize;
1468 addr_t wallAddress = (addr_t)address + newSize;
1476 newSize -= sizeof(addr_t) + sizeof(heap_leak_check_info);
1479 *newAddress = debug_heap_memalign(sDefaultAlignment, newSize);
1486 memcpy(*newAddress, address, min_c(maxSize, newSize));
1956 debug_heap_realloc(void *address, size_t newSize)
1959 return debug_heap_memalign(sDefaultAlignment, newSize);
1961 if (newSize == 0) {
1969 if (heap_realloc(heap, address, &newAddress, newSize) == B_OK) {
1990 if (available >= newSize) {
1991 // there is enough room available for the newSize
1993 + info->allocation_size - newSize);
1997 newSize, area, available, newAddress));
1999 min_c(newSize, info->allocation_size));
2001 info->allocation_size = newSize;
2008 if (available >= newSize) {
2009 // there is enough room available for the newSize
2013 newSize, area, available));
2014 info->allocation_size = newSize;
2020 newAddress = debug_heap_memalign(sDefaultAlignment, newSize);
2023 " bytes\n", newSize);
2027 memcpy(newAddress, address, min_c(newSize, info->allocation_size));
2031 newAddress, newSize, area));
2037 newSize);