Lines Matching refs:tcache

668 				tcache_t *tcache;  in stats_print_atexit()  local
671 ql_foreach(tcache, &arena->tcache_ql, link) { in stats_print_atexit()
672 tcache_stats_merge(tsdn, tcache, arena); in stats_print_atexit()
1918 tcache_t *tcache; in imalloc_no_sample() local
1925 tcache = tsd_tcachep_get(tsd); in imalloc_no_sample()
1926 assert(tcache == tcache_get(tsd)); in imalloc_no_sample()
1928 tcache = tcache_get(tsd); in imalloc_no_sample()
1931 tcache = NULL; in imalloc_no_sample()
1933 tcache = tcaches_get(tsd, dopts->tcache_ind); in imalloc_no_sample()
1950 dopts->zero, tcache, arena); in imalloc_no_sample()
1953 return iallocztm(tsd_tsdn(tsd), size, ind, dopts->zero, tcache, false, in imalloc_no_sample()
2339 tcache_t *tcache = tsd_tcachep_get(tsd); in JEMALLOC_ATTR() local
2341 if (unlikely(ticker_trytick(&tcache->gc_ticker))) { in JEMALLOC_ATTR()
2373 cache_bin_t *bin = tcache_small_bin_get(tcache, ind); in JEMALLOC_ATTR()
2383 tcache->prof_accumbytes += usize; in JEMALLOC_ATTR()
2560 ifree(tsd_t *tsd, void *ptr, tcache_t *tcache, bool slow_path) { in ifree() argument
2590 idalloctm(tsd_tsdn(tsd), ptr, tcache, &alloc_ctx, false, in ifree()
2593 idalloctm(tsd_tsdn(tsd), ptr, tcache, &alloc_ctx, false, in ifree()
2599 isfree(tsd_t *tsd, void *ptr, size_t usize, tcache_t *tcache, bool slow_path) { in isfree() argument
2648 isdalloct(tsd_tsdn(tsd), ptr, usize, tcache, ctx, false); in isfree()
2650 isdalloct(tsd_tsdn(tsd), ptr, usize, tcache, ctx, true); in isfree()
2770 tcache_t *tcache; in free_default() local
2774 tcache = tsd_tcachep_get(tsd); in free_default()
2775 ifree(tsd, ptr, tcache, false); in free_default()
2778 tcache = tcache_get(tsd); in free_default()
2780 tcache = NULL; in free_default()
2784 ifree(tsd, ptr, tcache, true); in free_default()
2797 tcache_t *tcache = tsd_tcachep_get(tsd); in free_fastpath() local
2829 if (unlikely(ticker_trytick(&tcache->gc_ticker))) { in free_fastpath()
2833 cache_bin_t *bin = tcache_small_bin_get(tcache, alloc_ctx.szind); in free_fastpath()
3135 size_t usize, size_t alignment, bool zero, tcache_t *tcache, arena_t *arena, in irallocx_prof_sample() argument
3144 SC_LARGE_MINCLASS, alignment, zero, tcache, in irallocx_prof_sample()
3152 tcache, arena, hook_args); in irallocx_prof_sample()
3160 size_t alignment, size_t *usize, bool zero, tcache_t *tcache, in irallocx_prof() argument
3171 *usize, alignment, zero, tcache, arena, tctx, hook_args); in irallocx_prof()
3174 zero, tcache, arena, hook_args); in irallocx_prof()
3209 tcache_t *tcache; in je_rallocx() local
3233 tcache = NULL; in je_rallocx()
3235 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags)); in je_rallocx()
3238 tcache = tcache_get(tsd); in je_rallocx()
3259 zero, tcache, arena, &alloc_ctx, &hook_args); in je_rallocx()
3265 zero, tcache, arena, &hook_args); in je_rallocx()
3482 tcache_t *tcache; in je_dallocx() local
3487 tcache = NULL; in je_dallocx()
3489 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags)); in je_dallocx()
3493 tcache = tsd_tcachep_get(tsd); in je_dallocx()
3494 assert(tcache == tcache_get(tsd)); in je_dallocx()
3497 tcache = tcache_get(tsd); in je_dallocx()
3499 tcache = NULL; in je_dallocx()
3507 ifree(tsd, ptr, tcache, false); in je_dallocx()
3511 ifree(tsd, ptr, tcache, true); in je_dallocx()
3543 tcache_t *tcache; in sdallocx_default() local
3548 tcache = NULL; in sdallocx_default()
3550 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags)); in sdallocx_default()
3554 tcache = tsd_tcachep_get(tsd); in sdallocx_default()
3555 assert(tcache == tcache_get(tsd)); in sdallocx_default()
3558 tcache = tcache_get(tsd); in sdallocx_default()
3560 tcache = NULL; in sdallocx_default()
3568 isfree(tsd, ptr, usize, tcache, false); in sdallocx_default()
3572 isfree(tsd, ptr, usize, tcache, true); in sdallocx_default()