Lines Matching refs:tsdn
36 tcache_salloc(tsdn_t *tsdn, const void *ptr) { in tcache_salloc() argument
37 return arena_salloc(tsdn, ptr); in tcache_salloc()
89 tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache, in tcache_alloc_small_hard() argument
94 arena_tcache_fill_small(tsdn, arena, tcache, tbin, binind, in tcache_alloc_small_hard()
106 tbin_extents_lookup_size_check(tsdn_t *tsdn, cache_bin_t *tbin, szind_t binind, in tbin_extents_lookup_size_check() argument
109 rtree_ctx_t *rtree_ctx = tsdn_rtree_ctx(tsdn, &rtree_ctx_fallback); in tbin_extents_lookup_size_check()
120 rtree_extent_szind_read(tsdn, &extents_rtree, in tbin_extents_lookup_size_check()
341 tcache_arena_associate(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena) { in tcache_arena_associate() argument
347 malloc_mutex_lock(tsdn, &arena->tcache_ql_mtx); in tcache_arena_associate()
357 malloc_mutex_unlock(tsdn, &arena->tcache_ql_mtx); in tcache_arena_associate()
362 tcache_arena_dissociate(tsdn_t *tsdn, tcache_t *tcache) { in tcache_arena_dissociate() argument
367 malloc_mutex_lock(tsdn, &arena->tcache_ql_mtx); in tcache_arena_dissociate()
382 tcache_stats_merge(tsdn, tcache, arena); in tcache_arena_dissociate()
383 malloc_mutex_unlock(tsdn, &arena->tcache_ql_mtx); in tcache_arena_dissociate()
389 tcache_arena_reassociate(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena) { in tcache_arena_reassociate() argument
390 tcache_arena_dissociate(tsdn, tcache); in tcache_arena_reassociate()
391 tcache_arena_associate(tsdn, tcache, arena); in tcache_arena_reassociate()
601 tcache_stats_merge(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena) { in tcache_stats_merge() argument
610 bin_t *bin = arena_bin_choose_lock(tsdn, arena, i, &binshard); in tcache_stats_merge()
612 malloc_mutex_unlock(tsdn, &bin->lock); in tcache_stats_merge()
618 arena_stats_large_flush_nrequests_add(tsdn, &arena->stats, i, in tcache_stats_merge()
733 tcache_boot(tsdn_t *tsdn) { in tcache_boot() argument
750 tcache_bin_info = (cache_bin_info_t *)base_alloc(tsdn, b0get(), nhbins in tcache_boot()
780 tcache_prefork(tsdn_t *tsdn) { in tcache_prefork() argument
782 malloc_mutex_prefork(tsdn, &tcaches_mtx); in tcache_prefork()
787 tcache_postfork_parent(tsdn_t *tsdn) { in tcache_postfork_parent() argument
789 malloc_mutex_postfork_parent(tsdn, &tcaches_mtx); in tcache_postfork_parent()
794 tcache_postfork_child(tsdn_t *tsdn) { in tcache_postfork_child() argument
796 malloc_mutex_postfork_child(tsdn, &tcaches_mtx); in tcache_postfork_child()