Lines Matching refs:tcache
31 tcache_event(tsd_t *tsd, tcache_t *tcache) { in tcache_event() argument
36 if (unlikely(ticker_tick(&tcache->gc_ticker))) { in tcache_event()
37 tcache_event_hard(tsd, tcache); in tcache_event()
42 tcache_alloc_small(tsd_t *tsd, arena_t *arena, tcache_t *tcache, in tcache_alloc_small() argument
50 bin = tcache_small_bin_get(tcache, binind); in tcache_alloc_small()
60 ret = tcache_alloc_small_hard(tsd_tsdn(tsd), arena, tcache, in tcache_alloc_small()
99 tcache->prof_accumbytes += usize; in tcache_alloc_small()
101 tcache_event(tsd, tcache); in tcache_alloc_small()
106 tcache_alloc_large(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size, in tcache_alloc_large() argument
113 bin = tcache_large_bin_get(tcache, binind); in tcache_alloc_large()
159 tcache->prof_accumbytes += usize; in tcache_alloc_large()
163 tcache_event(tsd, tcache); in tcache_alloc_large()
168 tcache_dalloc_small(tsd_t *tsd, tcache_t *tcache, void *ptr, szind_t binind, in tcache_dalloc_small() argument
179 bin = tcache_small_bin_get(tcache, binind); in tcache_dalloc_small()
182 tcache_bin_flush_small(tsd, tcache, bin, binind, in tcache_dalloc_small()
189 tcache_event(tsd, tcache); in tcache_dalloc_small()
193 tcache_dalloc_large(tsd_t *tsd, tcache_t *tcache, void *ptr, szind_t binind, in tcache_dalloc_large() argument
205 bin = tcache_large_bin_get(tcache, binind); in tcache_dalloc_large()
209 (bin_info->ncached_max >> 1), tcache); in tcache_dalloc_large()
215 tcache_event(tsd, tcache); in tcache_dalloc_large()
221 if (unlikely(elm->tcache == NULL)) { in tcaches_get()
222 elm->tcache = tcache_create_explicit(tsd); in tcaches_get()
224 return elm->tcache; in tcaches_get()