Lines Matching refs:old_ptr
289 size_t InvalidGetSizeForRealloc(const void* old_ptr) {
291 "Attempt to realloc invalid pointer", old_ptr);
1238 void* old_ptr, size_t new_size,
1243 const size_t old_size = GetSizeWithCallback(old_ptr, invalid_get_size_fn);
1271 memcpy(new_ptr, old_ptr, ((old_size < new_size) ? old_size : new_size));
1272 MallocHook::InvokeDeleteHook(old_ptr);
1274 // that we already know the sizeclass of old_ptr. The benefit
1276 do_free_with_callback(old_ptr, invalid_free_fn);
1280 MallocHook::InvokeDeleteHook(old_ptr);
1282 MallocHook::InvokeNewHook(old_ptr, new_size);
1283 return old_ptr;
1287 inline void* do_realloc(void* old_ptr, size_t new_size) {
1288 return do_realloc_with_callback(old_ptr, new_size,
1584 extern "C" PERFTOOLS_DLL_DECL void* tc_realloc(void* old_ptr,
1586 if (old_ptr == NULL) {
1592 MallocHook::InvokeDeleteHook(old_ptr);
1593 do_free(old_ptr);
1596 return do_realloc(old_ptr, new_size);