Lines Matching refs:ptr

313 a0idalloc(extent_t *extent, void *ptr, bool is_internal)  in a0idalloc()  argument
315 idalloctm(TSDN_NULL, extent, ptr, false, is_internal, true); in a0idalloc()
325 a0dalloc(void *ptr) in a0dalloc() argument
327 a0idalloc(iealloc(NULL, ptr), ptr, true); in a0dalloc()
360 bootstrap_free(void *ptr) in bootstrap_free() argument
362 if (unlikely(ptr == NULL)) in bootstrap_free()
365 a0idalloc(iealloc(NULL, ptr), ptr, false); in bootstrap_free()
1918 ifree(tsd_t *tsd, void *ptr, tcache_t *tcache, bool slow_path) in ifree() argument
1925 assert(ptr != NULL); in ifree()
1928 extent = iealloc(tsd_tsdn(tsd), ptr); in ifree()
1930 usize = isalloc(tsd_tsdn(tsd), extent, ptr); in ifree()
1931 prof_free(tsd, extent, ptr, usize); in ifree()
1933 usize = isalloc(tsd_tsdn(tsd), extent, ptr); in ifree()
1938 idalloctm(tsd_tsdn(tsd), extent, ptr, tcache, false, false); in ifree()
1940 idalloctm(tsd_tsdn(tsd), extent, ptr, tcache, false, true); in ifree()
1944 isfree(tsd_t *tsd, extent_t *extent, void *ptr, size_t usize, tcache_t *tcache, in isfree() argument
1949 assert(ptr != NULL); in isfree()
1953 prof_free(tsd, extent, ptr, usize); in isfree()
1958 isdalloct(tsd_tsdn(tsd), extent, ptr, usize, tcache, false); in isfree()
1960 isdalloct(tsd_tsdn(tsd), extent, ptr, usize, tcache, true); in isfree()
1966 je_realloc(void *ptr, size_t size) in je_realloc() argument
1974 if (ptr != NULL) { in je_realloc()
1978 UTRACE(ptr, 0, 0); in je_realloc()
1980 ifree(tsd, ptr, tcache_get(tsd, false), true); in je_realloc()
1986 if (likely(ptr != NULL)) { in je_realloc()
1995 extent = iealloc(tsd_tsdn(tsd), ptr); in je_realloc()
1996 old_usize = isalloc(tsd_tsdn(tsd), extent, ptr); in je_realloc()
2000 NULL : irealloc_prof(tsd, extent, ptr, old_usize, in je_realloc()
2005 ret = iralloc(tsd, extent, ptr, old_usize, size, 0, in je_realloc()
2030 UTRACE(ptr, size, ret); in je_realloc()
2036 je_free(void *ptr) in je_free() argument
2038 UTRACE(ptr, 0, 0); in je_free()
2039 if (likely(ptr != NULL)) { in je_free()
2043 ifree(tsd, ptr, tcache_get(tsd, false), false); in je_free()
2045 ifree(tsd, ptr, tcache_get(tsd, false), true); in je_free()
2140 JEMALLOC_EXPORT void (*__free_hook)(void *ptr) = je_free;
2142 JEMALLOC_EXPORT void *(*__realloc_hook)(void *ptr, size_t size) = je_realloc;
2158 void __libc_free(void* ptr) PREALIAS(je_free);
2159 void *__libc_realloc(void* ptr, size_t size) PREALIAS(je_realloc);
2295 je_rallocx(void *ptr, size_t size, int flags) in je_rallocx() argument
2307 assert(ptr != NULL); in je_rallocx()
2312 extent = iealloc(tsd_tsdn(tsd), ptr); in je_rallocx()
2330 old_usize = isalloc(tsd_tsdn(tsd), extent, ptr); in je_rallocx()
2336 p = irallocx_prof(tsd, extent, ptr, old_usize, size, alignment, in je_rallocx()
2341 p = iralloct(tsd_tsdn(tsd), extent, ptr, old_usize, size, in je_rallocx()
2356 UTRACE(ptr, size, p); in je_rallocx()
2364 UTRACE(ptr, size, 0); in je_rallocx()
2370 ixallocx_helper(tsdn_t *tsdn, extent_t *extent, void *ptr, size_t old_usize, in ixallocx_helper() argument
2375 if (ixalloc(tsdn, extent, ptr, old_usize, size, extra, alignment, zero)) in ixallocx_helper()
2377 usize = isalloc(tsdn, extent, ptr); in ixallocx_helper()
2383 ixallocx_prof_sample(tsdn_t *tsdn, extent_t *extent, void *ptr, in ixallocx_prof_sample() argument
2391 usize = ixallocx_helper(tsdn, extent, ptr, old_usize, size, extra, in ixallocx_prof_sample()
2398 ixallocx_prof(tsd_t *tsd, extent_t *extent, void *ptr, size_t old_usize, in ixallocx_prof() argument
2406 old_tctx = prof_tctx_get(tsd_tsdn(tsd), extent, ptr); in ixallocx_prof()
2431 usize = ixallocx_prof_sample(tsd_tsdn(tsd), extent, ptr, in ixallocx_prof()
2434 usize = ixallocx_helper(tsd_tsdn(tsd), extent, ptr, old_usize, in ixallocx_prof()
2441 prof_realloc(tsd, extent, ptr, usize, tctx, prof_active, false, extent, in ixallocx_prof()
2442 ptr, old_usize, old_tctx); in ixallocx_prof()
2448 je_xallocx(void *ptr, size_t size, size_t extra, int flags) in je_xallocx() argument
2456 assert(ptr != NULL); in je_xallocx()
2462 extent = iealloc(tsd_tsdn(tsd), ptr); in je_xallocx()
2464 old_usize = isalloc(tsd_tsdn(tsd), extent, ptr); in je_xallocx()
2483 usize = ixallocx_prof(tsd, extent, ptr, old_usize, size, extra, in je_xallocx()
2486 usize = ixallocx_helper(tsd_tsdn(tsd), extent, ptr, old_usize, in je_xallocx()
2497 UTRACE(ptr, size, ptr); in je_xallocx()
2504 je_sallocx(const void *ptr, int flags) in JEMALLOC_ATTR()
2515 usize = ivsalloc(tsdn, ptr); in JEMALLOC_ATTR()
2517 usize = isalloc(tsdn, iealloc(tsdn, ptr), ptr); in JEMALLOC_ATTR()
2524 je_dallocx(void *ptr, int flags) in je_dallocx() argument
2529 assert(ptr != NULL); in je_dallocx()
2542 UTRACE(ptr, 0, 0); in je_dallocx()
2544 ifree(tsd, ptr, tcache, false); in je_dallocx()
2546 ifree(tsd, ptr, tcache, true); in je_dallocx()
2566 je_sdallocx(void *ptr, size_t size, int flags) in je_sdallocx() argument
2573 assert(ptr != NULL); in je_sdallocx()
2576 extent = iealloc(tsd_tsdn(tsd), ptr); in je_sdallocx()
2578 assert(usize == isalloc(tsd_tsdn(tsd), extent, ptr)); in je_sdallocx()
2589 UTRACE(ptr, 0, 0); in je_sdallocx()
2591 isfree(tsd, extent, ptr, usize, tcache, false); in je_sdallocx()
2593 isfree(tsd, extent, ptr, usize, tcache, true); in je_sdallocx()
2683 je_malloc_usable_size(JEMALLOC_USABLE_SIZE_CONST void *ptr) in je_malloc_usable_size() argument
2694 ret = ivsalloc(tsdn, ptr); in je_malloc_usable_size()
2696 ret = (ptr == NULL) ? 0 : isalloc(tsdn, iealloc(tsdn, ptr), in je_malloc_usable_size()
2697 ptr); in je_malloc_usable_size()