Home
last modified time | relevance | path

Searched refs:old_ptr (Results 1 – 9 of 9) sorted by relevance

/src/sys/net/route/
H A Dnhop_utils.c138 void *old_ptr; in bitmask_swap() local
140 old_ptr = bh->idx; in bitmask_swap()
146 *pidx = old_ptr; in bitmask_swap()
/src/contrib/llvm-project/compiler-rt/lib/scudo/standalone/include/scudo/
H A Dinterface.h33 __scudo_realloc_allocate_hook(void *old_ptr, void *new_ptr, size_t size);
34 __attribute__((weak)) void __scudo_realloc_deallocate_hook(void *old_ptr);
/src/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc30 static void reportReallocAllocation(void *old_ptr, void *new_ptr, size_t size) {
35 __scudo_realloc_allocate_hook(old_ptr, new_ptr, size);
40 static void reportReallocDeallocation(void *old_ptr) {
43 __scudo_realloc_deallocate_hook(old_ptr);
45 __scudo_deallocate_hook(old_ptr);
/src/contrib/jemalloc/include/jemalloc/internal/
H A Dprof_inlines.h163 prof_tctx_t *tctx, bool prof_active, const void *old_ptr, size_t old_usize, in prof_realloc() argument
187 moved = (ptr != old_ptr); in prof_realloc()
/src/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp546 void *Reallocate(void *old_ptr, uptr new_size, BufferedStackTrace *stack) { in Reallocate()
547 CHECK(old_ptr && new_size); in Reallocate()
548 uptr p = reinterpret_cast<uptr>(old_ptr); in Reallocate()
560 REAL(memcpy)(new_ptr, old_ptr, memcpy_size); in Reallocate()
561 Deallocate(old_ptr, 0, 0, stack, FROM_MALLOC); in Reallocate()
/src/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.cpp756 void *Reallocate(void *old_ptr, uptr new_size, BufferedStackTrace *stack) { in Reallocate()
757 CHECK(old_ptr && new_size); in Reallocate()
758 uptr p = reinterpret_cast<uptr>(old_ptr); in Reallocate()
770 ReportInvalidFree(old_ptr, chunk_state, stack); in Reallocate()
775 REAL(memcpy)(new_ptr, old_ptr, memcpy_size); in Reallocate()
776 Deallocate(old_ptr, 0, 0, stack, FROM_MALLOC); in Reallocate()
/src/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_alloc.cpp2226 void *old_ptr; in ___kmp_fast_free() local
2242 old_ptr = TCR_PTR(q_th->th.th_free_lists[index].th_free_list_sync); in ___kmp_fast_free()
2245 *((void **)tail) = old_ptr; in ___kmp_fast_free()
2248 &q_th->th.th_free_lists[index].th_free_list_sync, old_ptr, head)) { in ___kmp_fast_free()
2250 old_ptr = TCR_PTR(q_th->th.th_free_lists[index].th_free_list_sync); in ___kmp_fast_free()
2251 *((void **)tail) = old_ptr; in ___kmp_fast_free()
/src/contrib/jemalloc/src/
H A Djemalloc.c3440 irallocx_prof_sample(tsdn_t *tsdn, void *old_ptr, size_t old_usize, in irallocx_prof_sample() argument
3451 p = iralloct(tsdn, old_ptr, old_usize, in irallocx_prof_sample()
3459 p = iralloct(tsdn, old_ptr, old_usize, usize, alignment, zero, in irallocx_prof_sample()
3468 irallocx_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t size, in irallocx_prof() argument
3473 prof_info_get_and_reset_recent(tsd, old_ptr, alloc_ctx, &old_prof_info); in irallocx_prof()
3479 p = irallocx_prof_sample(tsd_tsdn(tsd), old_ptr, old_usize, in irallocx_prof()
3482 p = iralloct(tsd_tsdn(tsd), old_ptr, old_usize, size, alignment, in irallocx_prof()
3490 prof_realloc(tsd, p, size, usize, tctx, prof_active, old_ptr, in irallocx_prof()
/src/sys/netpfil/ipfw/
H A Dip_fw_table_algo.c2492 void *old_ptr; in ta_modify_ifidx() local
2497 old_ptr = icfg->main_ptr; in ta_modify_ifidx()
2502 mi->main_ptr = old_ptr; in ta_modify_ifidx()
2949 void *old_ptr; in ta_modify_numarray() local
2954 old_ptr = cfg->main_ptr; in ta_modify_numarray()
2959 mi->main_ptr = old_ptr; in ta_modify_numarray()