Lines Matching refs:p_old
538 void* renew_block ( ThreadId tid, void* p_old, SizeT new_req_szB ) in renew_block() argument
540 if (0) VG_(printf)("REALL %p %ld\n", p_old, new_req_szB); in renew_block()
546 Block* bk = find_Block_containing( (Addr)p_old ); in renew_block()
553 tl_assert(bk->payload <= (Addr)p_old); in renew_block()
554 tl_assert( (Addr)p_old < bk->payload + bk->req_szB ); in renew_block()
556 if (bk->payload != (Addr)p_old) { in renew_block()
574 return p_old; in renew_block()
585 tl_assert(p_new != p_old); in renew_block()
587 VG_(memcpy)(p_new, p_old, bk->req_szB); in renew_block()
588 VG_(cli_free)(p_old); in renew_block()
593 delete_Block_starting_at( (Addr)p_old ); in renew_block()
660 static void* dh_realloc ( ThreadId tid, void* p_old, SizeT new_szB ) in dh_realloc() argument
662 if (p_old == NULL) { in dh_realloc()
666 dh_free(tid, p_old); in dh_realloc()
669 return renew_block(tid, p_old, new_szB); in dh_realloc()