Home
last modified time | relevance | path

Searched refs:p_new (Results 1 – 6 of 6) sorted by relevance

/external/valgrind/drd/
Ddrd_malloc_wrappers.c181 void* p_new; in drd_realloc() local
210 p_new = p_old; in drd_realloc()
218 p_new = p_old; in drd_realloc()
223 p_new = VG_(cli_malloc)(VG_(clo_alignment), new_size); in drd_realloc()
225 if (p_new) in drd_realloc()
228 VG_(memcpy)(p_new, p_old, mc->size); in drd_realloc()
237 mc->data = (Addr)p_new; in drd_realloc()
241 s_start_using_mem_callback((Addr)p_new, new_size, 0/*ec_uniq*/); in drd_realloc()
249 return p_new; in drd_realloc()
/external/valgrind/exp-sgcheck/
Dh_main.c421 Addr p_new = (Addr)VG_(cli_malloc)(VG_(clo_alignment), new_size); in h_replace_realloc() local
422 VG_(memcpy)((void*)p_new, p_old, new_size); in h_replace_realloc()
430 add_new_segment ( tid, p_new, new_size ); in h_replace_realloc()
432 return (void*)p_new; in h_replace_realloc()
435 Addr p_new = (Addr)VG_(cli_malloc)(VG_(clo_alignment), new_size); in h_replace_realloc() local
436 VG_(memcpy)((void*)p_new, p_old, seg->szB); in h_replace_realloc()
446 add_new_segment ( tid, p_new, new_size ); in h_replace_realloc()
448 return (void*)p_new; in h_replace_realloc()
/external/valgrind/exp-dhat/
Ddh_main.c541 void* p_new = NULL; in renew_block() local
579 p_new = VG_(cli_malloc)(VG_(clo_alignment), new_req_szB); in renew_block()
580 if (!p_new) { 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()
600 bk->payload = (Addr)p_new; in renew_block()
609 return p_new; in renew_block()
/external/valgrind/massif/
Dms_main.c1625 void* p_new; in realloc_block() local
1661 p_new = p_old; in realloc_block()
1666 p_new = VG_(cli_malloc)(VG_(clo_alignment), new_req_szB); in realloc_block()
1667 if (!p_new) { in realloc_block()
1672 VG_(memcpy)(p_new, p_old, old_req_szB + old_slop_szB); in realloc_block()
1674 new_actual_szB = VG_(cli_malloc_usable_size)(p_new); in realloc_block()
1679 if (p_new) { in realloc_block()
1681 hc->data = (Addr)p_new; in realloc_block()
1729 return p_new; in realloc_block()
/external/valgrind/coregrind/
Dm_mallocfree.c2372 void* p_new; in VG_() local
2399 p_new = VG_(arena_malloc) ( aid, cc, req_pszB ); in VG_()
2401 VG_(memcpy)(p_new, ptr, old_pszB); in VG_()
2405 return p_new; in VG_()
/external/valgrind/helgrind/
Dhg_main.c4271 Addr p_new = (Addr)VG_(cli_malloc)(VG_(clo_alignment), new_size); in hg_cli__realloc() local
4276 evh__copy_mem( payload, p_new, md->szB ); in hg_cli__realloc()
4277 evh__new_mem_heap ( p_new + md->szB, new_size - md->szB, in hg_cli__realloc()
4286 ((UChar*)p_new)[i] = ((UChar*)payload)[i]; in hg_cli__realloc()
4306 md_new->payload = p_new; in hg_cli__realloc()
4312 return (void*)p_new; in hg_cli__realloc()