Searched refs:binind (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | tcache_inlines.h | 43 size_t size, szind_t binind, bool zero, bool slow_path) { in tcache_alloc_small() argument 49 assert(binind < SC_NBINS); in tcache_alloc_small() 50 bin = tcache_small_bin_get(tcache, binind); in tcache_alloc_small() 61 bin, binind, &tcache_hard_success); in tcache_alloc_small() 73 usize = sz_index2size(binind); in tcache_alloc_small() 80 arena_alloc_junk_small(ret, &bin_infos[binind], in tcache_alloc_small() 88 arena_alloc_junk_small(ret, &bin_infos[binind], true); in tcache_alloc_small() 105 szind_t binind, bool zero, bool slow_path) { in tcache_alloc_large() argument 110 assert(binind >= SC_NBINS &&binind < nhbins); in tcache_alloc_large() 111 bin = tcache_large_bin_get(tcache, binind); in tcache_alloc_large() [all …]
|
H A D | jemalloc_internal_inlines_a.h | 112 tcache_small_bin_get(tcache_t *tcache, szind_t binind) { in tcache_small_bin_get() argument 113 assert(binind < SC_NBINS); in tcache_small_bin_get() 114 return &tcache->bins_small[binind]; in tcache_small_bin_get() 118 tcache_large_bin_get(tcache_t *tcache, szind_t binind) { in tcache_large_bin_get() argument 119 assert(binind >= SC_NBINS &&binind < nhbins); in tcache_large_bin_get() 120 return &tcache->bins_large[binind - SC_NBINS]; in tcache_large_bin_get()
|
H A D | tcache_externs.h | 31 cache_bin_t *tbin, szind_t binind, bool *tcache_success); 33 szind_t binind, unsigned rem); 34 void tcache_bin_flush_large(tsd_t *tsd, cache_bin_t *tbin, szind_t binind,
|
H A D | arena_externs.h | 33 size_t arena_slab_regind(extent_t *slab, szind_t binind, const void *ptr); 52 cache_bin_t *tbin, szind_t binind, uint64_t prof_accumbytes); 67 szind_t binind, extent_t *extent, void *ptr); 90 bin_t *arena_bin_choose_lock(tsdn_t *tsdn, arena_t *arena, szind_t binind,
|
/freebsd/contrib/jemalloc/src/ |
H A D | tcache.c | 42 szind_t binind = tcache->next_gc_bin; in tcache_event_hard() local 45 if (binind < SC_NBINS) { in tcache_event_hard() 46 tbin = tcache_small_bin_get(tcache, binind); in tcache_event_hard() 48 tbin = tcache_large_bin_get(tcache, binind); in tcache_event_hard() 54 if (binind < SC_NBINS) { in tcache_event_hard() 55 tcache_bin_flush_small(tsd, tcache, tbin, binind, in tcache_event_hard() 62 cache_bin_info_t *tbin_info = &tcache_bin_info[binind]; in tcache_event_hard() 64 (tcache->lg_fill_div[binind] + 1)) >= 1) { in tcache_event_hard() 65 tcache->lg_fill_div[binind]++; in tcache_event_hard() 68 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard() [all …]
|
H A D | arena.c | 338 arena_slab_regind(extent_t *slab, szind_t binind, const void *ptr) { in arena_slab_regind() argument 346 (uintptr_t)bin_infos[binind].reg_size == 0); in arena_slab_regind() 351 regind = div_compute(&arena_binind_div_info[binind], diff); in arena_slab_regind() 353 assert(regind < bin_infos[binind].nregs); in arena_slab_regind() 360 szind_t binind = extent_szind_get(slab); in arena_slab_reg_dalloc() local 361 const bin_info_t *bin_info = &bin_infos[binind]; in arena_slab_reg_dalloc() 362 size_t regind = arena_slab_regind(slab, binind, ptr); in arena_slab_reg_dalloc() 1229 arena_slab_alloc(tsdn_t *tsdn, arena_t *arena, szind_t binind, unsigned binshard, in arena_slab_alloc() argument 1240 binind, &zero, &commit); in arena_slab_alloc() 1244 true, binind, &zero, &commit); in arena_slab_alloc() [all …]
|