Searched refs:tbin (Results 1 – 8 of 8) sorted by relevance
/external/jemalloc/src/ |
D | tcache.c | 40 tcache_bin_t *tbin = &tcache->tbins[binind]; in tcache_event_hard() local 43 if (tbin->low_water > 0) { in tcache_event_hard() 48 tcache_bin_flush_small(tsd, tcache, tbin, binind, in tcache_event_hard() 49 tbin->ncached - tbin->low_water + (tbin->low_water in tcache_event_hard() 52 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard() 53 - tbin->low_water + (tbin->low_water >> 2), tcache); in tcache_event_hard() 59 if ((tbin_info->ncached_max >> (tbin->lg_fill_div+1)) >= 1) in tcache_event_hard() 60 tbin->lg_fill_div++; in tcache_event_hard() 61 } else if (tbin->low_water < 0) { in tcache_event_hard() 66 if (tbin->lg_fill_div > 1) in tcache_event_hard() [all …]
|
D | arena.c | 2405 arena_tcache_fill_small(tsdn_t *tsdn, arena_t *arena, tcache_bin_t *tbin, in arena_tcache_fill_small() argument 2411 assert(tbin->ncached == 0); in arena_tcache_fill_small() 2418 tbin->lg_fill_div); i < nfill; i++) { in arena_tcache_fill_small() 2432 memmove(tbin->avail - i, tbin->avail - nfill, in arena_tcache_fill_small() 2442 *(tbin->avail - nfill + i) = ptr; in arena_tcache_fill_small() 2446 bin->stats.nrequests += tbin->tstats.nrequests; in arena_tcache_fill_small() 2449 tbin->tstats.nrequests = 0; in arena_tcache_fill_small() 2452 tbin->ncached = i; in arena_tcache_fill_small()
|
/external/jemalloc_new/src/ |
D | tcache.c | 47 cache_bin_t *tbin; in tcache_event_hard() local 49 tbin = tcache_small_bin_get(tcache, binind); in tcache_event_hard() 51 tbin = tcache_large_bin_get(tcache, binind); in tcache_event_hard() 53 if (tbin->low_water > 0) { in tcache_event_hard() 58 tcache_bin_flush_small(tsd, tcache, tbin, binind, in tcache_event_hard() 59 tbin->ncached - tbin->low_water + (tbin->low_water in tcache_event_hard() 71 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard() 72 - tbin->low_water + (tbin->low_water >> 2), tcache); in tcache_event_hard() 74 } else if (tbin->low_water < 0) { in tcache_event_hard() 83 tbin->low_water = tbin->ncached; in tcache_event_hard() [all …]
|
D | arena.c | 160 cache_bin_t *tbin = &descriptor->bins_small[i]; in arena_stats_merge() local 162 tbin->ncached * sz_index2size(i)); in arena_stats_merge() 165 cache_bin_t *tbin = &descriptor->bins_large[i]; in arena_stats_merge() local 167 tbin->ncached * sz_index2size(i)); in arena_stats_merge() 1251 cache_bin_t *tbin, szind_t binind, uint64_t prof_accumbytes) { in arena_tcache_fill_small() argument 1255 assert(tbin->ncached == 0); in arena_tcache_fill_small() 1279 memmove(tbin->avail - i, tbin->avail - nfill, in arena_tcache_fill_small() 1288 *(tbin->avail - nfill + i) = ptr; in arena_tcache_fill_small() 1293 bin->stats.nrequests += tbin->tstats.nrequests; in arena_tcache_fill_small() 1298 tbin->tstats.nrequests = 0; in arena_tcache_fill_small() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | tcache.h | 148 tcache_bin_t *tbin, szind_t binind, bool *tcache_success); 149 void tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, 151 void tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, szind_t binind, 178 void *tcache_alloc_easy(tcache_bin_t *tbin, bool *tcache_success); 268 tcache_alloc_easy(tcache_bin_t *tbin, bool *tcache_success) in tcache_alloc_easy() argument 272 if (unlikely(tbin->ncached == 0)) { in tcache_alloc_easy() 273 tbin->low_water = -1; in tcache_alloc_easy() 285 ret = *(tbin->avail - tbin->ncached); in tcache_alloc_easy() 286 tbin->ncached--; in tcache_alloc_easy() 288 if (unlikely((int)tbin->ncached < tbin->low_water)) in tcache_alloc_easy() [all …]
|
D | arena.h | 568 tcache_bin_t *tbin, szind_t binind, uint64_t prof_accumbytes);
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | tcache_externs.h | 33 cache_bin_t *tbin, szind_t binind, bool *tcache_success); 34 void tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, cache_bin_t *tbin, 36 void tcache_bin_flush_large(tsd_t *tsd, cache_bin_t *tbin, szind_t binind,
|
D | arena_externs.h | 48 cache_bin_t *tbin, szind_t binind, uint64_t prof_accumbytes);
|