/external/valgrind/main/drd/ |
D | drd_malloc_wrappers.c | 177 static void* drd_realloc(ThreadId tid, void* p_old, SizeT new_size) in drd_realloc() argument 183 if (! p_old) in drd_realloc() 188 drd_free(tid, p_old); in drd_realloc() 196 mc = VG_(HT_lookup)(s_malloc_list, (UWord)p_old); in drd_realloc() 209 p_new = p_old; in drd_realloc() 217 p_new = p_old; in drd_realloc() 227 VG_(memcpy)(p_new, p_old, mc->size); in drd_realloc() 230 VG_(cli_free)(p_old); in drd_realloc() 233 VG_(HT_remove)(s_malloc_list, (UWord)p_old); in drd_realloc()
|
/external/valgrind/main/exp-dhat/ |
D | dh_main.c | 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() [all …]
|
/external/valgrind/main/memcheck/ |
D | mc_malloc_wrappers.c | 339 void* MC_(realloc) ( ThreadId tid, void* p_old, SizeT new_szB ) in MC_() 353 mc = VG_(HT_remove) ( MC_(malloc_list), (UWord)p_old ); in MC_() 355 MC_(record_free_error) ( tid, (Addr)p_old ); in MC_() 363 tl_assert((Addr)p_old == mc->data); in MC_() 393 MC_(copy_address_range_state) ( (Addr)p_old, a_new, new_szB ); in MC_() 397 VG_(memcpy)((void*)a_new, p_old, new_szB); in MC_() 402 VG_(memset)((void*)p_old, MC_(clo_free_fill), old_szB); in MC_() 436 MC_(copy_address_range_state) ( (Addr)p_old, a_new, mc->szB ); in MC_() 450 VG_(memcpy)((void*)a_new, p_old, mc->szB); in MC_() 455 VG_(memset)((void*)p_old, MC_(clo_free_fill), old_szB); in MC_()
|
/external/stlport/test/unit/ |
D | money_facets_test.cpp | 106 string::size_type p_old = strlen( rl.money_int_prefix_old ); in _money_put_get2() local 108 ((p_old != 0) && in _money_put_get2() 109 (str_res.substr(index, p_old) == rl.money_int_prefix_old)) ); in _money_put_get2() 113 index += p_old; in _money_put_get2()
|
/external/valgrind/main/exp-ptrcheck/ |
D | h_main.h | 67 void* h_replace_realloc ( ThreadId tid, void* p_old, SizeT new_size );
|
D | h_main.c | 951 void* h_replace_realloc ( ThreadId tid, void* p_old, SizeT new_size ) in h_replace_realloc() argument 956 seg = find_Seg_by_addr( (Addr)p_old ); in h_replace_realloc() 960 tl_assert(seg->addr == (Addr)p_old); in h_replace_realloc() 965 VG_(memcpy)((void*)p_new, p_old, new_size); in h_replace_realloc() 968 copy_mem ( (Addr)p_old, p_new, new_size ); in h_replace_realloc() 982 VG_(memcpy)((void*)p_new, p_old, seg->szB); in h_replace_realloc() 985 copy_mem ( (Addr)p_old, p_new, seg->szB ); in h_replace_realloc()
|
/external/valgrind/main/massif/ |
D | ms_main.c | 1665 void* realloc_block ( ThreadId tid, void* p_old, SizeT new_req_szB ) in realloc_block() argument 1674 hc = VG_(HT_remove)(malloc_list, (UWord)p_old); in realloc_block() 1704 p_new = p_old; in realloc_block() 1715 VG_(memcpy)(p_new, p_old, old_req_szB); in realloc_block() 1716 VG_(cli_free)(p_old); in realloc_block() 1822 static void* ms_realloc ( ThreadId tid, void* p_old, SizeT new_szB ) in ms_realloc() argument 1824 return realloc_block(tid, p_old, new_szB); in ms_realloc()
|