Home
last modified time | relevance | path

Searched refs:binshard (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dextent_inlines.h76 unsigned binshard = (unsigned)((extent->e_bits & in extent_binshard_get() local
78 assert(binshard < bin_infos[extent_szind_get(extent)].n_shards); in extent_binshard_get()
79 return binshard; in extent_binshard_get()
203 extent_binshard_set(extent_t *extent, unsigned binshard) { in extent_binshard_set() argument
205 assert(binshard < bin_infos[extent_szind_get(extent)].n_shards); in extent_binshard_set()
207 ((uint64_t)binshard << EXTENT_BITS_BINSHARD_SHIFT); in extent_binshard_set()
273 extent_nfree_binshard_set(extent_t *extent, unsigned nfree, unsigned binshard) { in extent_nfree_binshard_set() argument
275 assert(binshard < bin_infos[extent_szind_get(extent)].n_shards); in extent_nfree_binshard_set()
278 ((uint64_t)binshard << EXTENT_BITS_BINSHARD_SHIFT) | in extent_nfree_binshard_set()
H A Dbin_types.h14 uint8_t binshard[SC_NBINS]; member
H A Darena_externs.h91 unsigned *binshard);
/freebsd/contrib/jemalloc/src/
H A Dtcache.c162 unsigned binshard = extent_binshard_get(extent); in tcache_bin_flush_small() local
163 assert(binshard < bin_infos[binind].n_shards); in tcache_bin_flush_small()
164 bin_t *bin = &bin_arena->bins[binind].bin_shards[binshard]; in tcache_bin_flush_small()
188 && extent_binshard_get(extent) == binshard) { in tcache_bin_flush_small()
212 unsigned binshard; in tcache_bin_flush_small() local
214 &binshard); in tcache_bin_flush_small()
609 unsigned binshard; in tcache_stats_merge() local
610 bin_t *bin = arena_bin_choose_lock(tsdn, arena, i, &binshard); in tcache_stats_merge()
H A Darena.c1229 arena_slab_alloc(tsdn_t *tsdn, arena_t *arena, szind_t binind, unsigned binshard, in arena_slab_alloc() argument
1257 extent_nfree_binshard_set(slab, bin_info->nregs, binshard); in arena_slab_alloc()
1267 szind_t binind, unsigned binshard) { in arena_bin_nonfull_slab_get() argument
1283 slab = arena_slab_alloc(tsdn, arena, binind, binshard, bin_info); in arena_bin_nonfull_slab_get()
1310 szind_t binind, unsigned binshard) { in arena_bin_malloc_hard() argument
1319 slab = arena_bin_nonfull_slab_get(tsdn, arena, bin, binind, binshard); in arena_bin_malloc_hard()
1366 unsigned *binshard) { in arena_bin_choose_lock() argument
1369 *binshard = 0; in arena_bin_choose_lock()
1371 *binshard = tsd_binshardsp_get(tsdn_tsd(tsdn))->binshard[binind]; in arena_bin_choose_lock()
1373 assert(*binshard < bin_infos[binind].n_shards); in arena_bin_choose_lock()
[all …]
H A Dextent.c2392 const unsigned binshard = extent_binshard_get(extent); in extent_util_stats_verbose_get() local
2393 bin_t *bin = &arena->bins[szind].bin_shards[binshard]; in extent_util_stats_verbose_get()
H A Djemalloc.c395 bins->binshard[i] = shard % bin_infos[i].n_shards; in arena_bind()