Home
last modified time | relevance | path

Searched refs:tbin (Results 1 – 4 of 4) sorted by relevance

/external/jemalloc/src/
Dtcache.c40 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 …]
Darena.c2405 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/include/jemalloc/internal/
Dtcache.h148 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 …]
Darena.h562 tcache_bin_t *tbin, szind_t binind, uint64_t prof_accumbytes);