Home
last modified time | relevance | path

Searched refs:binind (Results 1 – 9 of 9) sorted by relevance

/external/jemalloc_new/include/jemalloc/internal/
Dtcache_inlines.h43 UNUSED size_t size, szind_t binind, bool zero, bool slow_path) { in tcache_alloc_small() argument
49 assert(binind < 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()
107 szind_t binind, bool zero, bool slow_path) { in tcache_alloc_large() argument
112 assert(binind >= NBINS &&binind < nhbins); in tcache_alloc_large()
113 bin = tcache_large_bin_get(tcache, binind); in tcache_alloc_large()
[all …]
Djemalloc_internal_inlines_a.h110 tcache_small_bin_get(tcache_t *tcache, szind_t binind) { in tcache_small_bin_get() argument
111 assert(binind < NBINS); in tcache_small_bin_get()
112 return &tcache->bins_small[binind]; in tcache_small_bin_get()
116 tcache_large_bin_get(tcache_t *tcache, szind_t binind) { in tcache_large_bin_get() argument
117 assert(binind >= NBINS &&binind < nhbins); in tcache_large_bin_get()
118 return &tcache->bins_large[binind - NBINS]; in tcache_large_bin_get()
Dtcache_externs.h33 cache_bin_t *tbin, szind_t binind, bool *tcache_success);
35 szind_t binind, unsigned rem);
36 void tcache_bin_flush_large(tsd_t *tsd, cache_bin_t *tbin, szind_t binind,
Darena_externs.h29 size_t arena_slab_regind(extent_t *slab, szind_t binind, const void *ptr);
48 cache_bin_t *tbin, szind_t binind, uint64_t prof_accumbytes);
/external/jemalloc_new/test/unit/
Dslab.c4 szind_t binind; in TEST_BEGIN() local
6 for (binind = 0; binind < NBINS; binind++) { in TEST_BEGIN()
9 const bin_info_t *bin_info = &bin_infos[binind]; in TEST_BEGIN()
12 binind, 0, extent_state_active, false, true, true); in TEST_BEGIN()
18 assert_zu_eq(arena_slab_regind(&slab, binind, reg), in TEST_BEGIN()
Dpack.c53 unsigned binind = binind_compute(); in nregs_per_run_compute() local
59 mib[2] = (size_t)binind; in nregs_per_run_compute()
/external/jemalloc_new/src/
Dtcache.c45 szind_t binind = tcache->next_gc_bin; in tcache_event_hard() local
48 if (binind < NBINS) { in tcache_event_hard()
49 tbin = tcache_small_bin_get(tcache, binind); in tcache_event_hard()
51 tbin = tcache_large_bin_get(tcache, binind); in tcache_event_hard()
57 if (binind < NBINS) { in tcache_event_hard()
58 tcache_bin_flush_small(tsd, tcache, tbin, binind, in tcache_event_hard()
65 cache_bin_info_t *tbin_info = &tcache_bin_info[binind]; in tcache_event_hard()
67 (tcache->lg_fill_div[binind] + 1)) >= 1) { in tcache_event_hard()
68 tcache->lg_fill_div[binind]++; in tcache_event_hard()
71 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard()
[all …]
Darena.c243 arena_slab_regind(extent_t *slab, szind_t binind, const void *ptr) { in arena_slab_regind() argument
251 (uintptr_t)bin_infos[binind].reg_size == 0); in arena_slab_regind()
256 regind = div_compute(&arena_binind_div_info[binind], diff); in arena_slab_regind()
258 assert(regind < bin_infos[binind].nregs); in arena_slab_regind()
265 szind_t binind = extent_szind_get(slab); in arena_slab_reg_dalloc() local
266 const bin_info_t *bin_info = &bin_infos[binind]; in arena_slab_reg_dalloc()
267 size_t regind = arena_slab_regind(slab, binind, ptr); in arena_slab_reg_dalloc()
1115 arena_slab_alloc(tsdn_t *tsdn, arena_t *arena, szind_t binind, in arena_slab_alloc() argument
1126 binind, &zero, &commit); in arena_slab_alloc()
1130 true, binind, &zero, &commit); in arena_slab_alloc()
[all …]
Dandroid_je_iterate.c48 szind_t binind = extent_szind_get(extent); in je_malloc_iterate() local
49 const bin_info_t* bin_info = &bin_infos[binind]; in je_malloc_iterate()