Home
last modified time | relevance | path

Searched refs:NBINS (Results 1 – 20 of 20) sorted by relevance

/external/jemalloc_new/include/jemalloc/internal/
Dtcache_structs.h24 cache_bin_t bins_small[NBINS];
44 uint8_t lg_fill_div[NBINS];
50 cache_bin_t bins_large[NSIZES-NBINS];
Dtcache_types.h64 ((TCACHE_GC_SWEEP / NBINS) + ((TCACHE_GC_SWEEP / NBINS == 0) ? 0 : 1))
Djemalloc_internal_inlines_a.h111 assert(binind < NBINS); in tcache_small_bin_get()
117 assert(binind >= NBINS &&binind < nhbins); in tcache_large_bin_get()
118 return &tcache->bins_large[binind - NBINS]; in tcache_large_bin_get()
Darena_inlines_b.h228 if (config_prof && unlikely(szind < NBINS)) { in arena_dalloc()
255 slab = (szind < NBINS); in arena_sdalloc_no_tcache()
267 assert((config_prof && opt_prof) || slab == (szind < NBINS)); in arena_sdalloc_no_tcache()
321 slab = (szind < NBINS); in arena_sdalloc()
340 if (config_prof && unlikely(szind < NBINS)) { in arena_sdalloc()
Dctl.h43 bin_stats_t bstats[NBINS];
44 arena_stats_large_t lstats[NSIZES - NBINS];
Darena_stats.h91 arena_stats_large_t lstats[NSIZES - NBINS];
225 NBINS].nrequests, nrequests); in arena_stats_large_nrequests_add()
Dtcache_inlines.h49 assert(binind < NBINS); in tcache_alloc_small()
112 assert(binind >= NBINS &&binind < nhbins); in tcache_alloc_large()
Darena_structs_b.h206 bin_t bins[NBINS];
Dbin.h51 extern const bin_info_t bin_infos[NBINS];
Drtree.h316 assert(!slab || szind < NBINS); in rtree_leaf_elm_szind_slab_update()
501 assert(!slab || szind < NBINS); in rtree_szind_slab_update()
Dsize_classes.h180 #define NBINS 39 macro
329 #define NBINS 36 macro
476 #define NBINS 35 macro
788 #define NBINS 39 macro
1097 #define NBINS 36 macro
1404 #define NBINS 35 macro
1424 #if (NBINS > 256)
Dsize_classes.sh302 * NBINS: Number of small size class bins.
/external/tensorflow/tensorflow/core/kernels/
Dbincount_op_test.cc48 #define BM_BincountDev(K, NBINS, type) \ argument
49 static void BM_Bincount##_##type##_##K##_##NBINS( \
51 test::Benchmark(#type, Bincount(K * 1024, NBINS), \
57 BENCHMARK(BM_Bincount##_##type##_##K##_##NBINS);
/external/jemalloc_new/src/
Dandroid_je_mallinfo.c24 for (unsigned j = 0; j < NSIZES - NBINS; j++) { in accumulate_large_allocs()
29 total_bytes += sz_index2size(NBINS + j) * allocs; in accumulate_large_allocs()
36 for (unsigned j = 0; j < NBINS; j++) { in accumulate_small_allocs()
76 return NBINS; in je_mallinfo_nbins()
101 if (aidx < narenas_auto && bidx < NBINS) { in je_mallinfo_bin_info()
Dtcache.c48 if (binind < NBINS) { in tcache_event_hard()
57 if (binind < NBINS) { in tcache_event_hard()
79 if (binind < NBINS && tcache->lg_fill_div[binind] > 1) { in tcache_event_hard()
112 assert(binind < NBINS); in tcache_bin_flush_small()
380 memset(tcache->bins_small, 0, sizeof(cache_bin_t) * NBINS); in tcache_init()
381 memset(tcache->bins_large, 0, sizeof(cache_bin_t) * (nhbins - NBINS)); in tcache_init()
383 for (; i < NBINS; i++) { in tcache_init()
475 for (unsigned i = 0; i < NBINS; i++) { in tcache_flush_cache()
485 for (unsigned i = NBINS; i < nhbins; i++) { in tcache_flush_cache()
554 for (i = 0; i < NBINS; i++) { in tcache_stats_merge()
[all …]
Darena.c43 static div_info_t arena_binind_div_info[NBINS];
125 for (szind_t i = 0; i < NSIZES - NBINS; i++) { in arena_stats_merge()
148 curlextents * sz_index2size(NBINS + i)); in arena_stats_merge()
159 for (; i < NBINS; i++) { in arena_stats_merge()
203 for (szind_t i = 0; i < NBINS; i++) { in arena_stats_merge()
298 hindex = (index >= NBINS) ? index - NBINS : 0; in arena_large_malloc_stats_update()
314 hindex = (index >= NBINS) ? index - NBINS : 0; in arena_large_dalloc_stats_update()
1002 for (unsigned i = 0; i < NBINS; i++) { in arena_reset()
1327 assert(binind < NBINS); in arena_malloc_small()
1441 extent_szind_set(extent, NBINS); in arena_prof_demote()
[all …]
Dbin.c7 const bin_info_t bin_infos[NBINS] = {
Dctl.c699 memset(ctl_arena->astats->bstats, 0, NBINS * in ctl_arena_clear()
701 memset(ctl_arena->astats->lstats, 0, (NSIZES - NBINS) * in ctl_arena_clear()
718 for (i = 0; i < NBINS; i++) { in ctl_arena_stats_amerge()
830 for (i = 0; i < NBINS; i++) { in ctl_arena_stats_sdmerge()
856 for (i = 0; i < NSIZES - NBINS; i++) { in ctl_arena_stats_sdmerge()
2428 CTL_RO_NL_GEN(arenas_nbins, NBINS, unsigned) in CTL_RO_NL_GEN()
2435 if (i > NBINS) { in CTL_RO_NL_GEN()
2441 CTL_RO_NL_GEN(arenas_nlextents, NSIZES - NBINS, unsigned)
2442 CTL_RO_NL_GEN(arenas_lextent_i_size, sz_index2size(NBINS+(szind_t)mib[2]),
2447 if (i > NSIZES - NBINS) { in arenas_lextent_i_index()
[all …]
/external/jemalloc_new/test/unit/
Dslab.c6 for (binind = 0; binind < NBINS; binind++) { in TEST_BEGIN()
Dmallctl.c684 TEST_ARENAS_CONSTANT(unsigned, nbins, NBINS); in TEST_BEGIN()
685 TEST_ARENAS_CONSTANT(unsigned, nlextents, NSIZES - NBINS); in TEST_BEGIN()