Home
last modified time | relevance | path

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

/redis-3.2.3/deps/jemalloc/src/
H A Dtcache.c45 tbin->ncached - tbin->low_water + (tbin->low_water in tcache_event_hard()
48 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard()
49 - tbin->low_water + (tbin->low_water >> 2), tcache); in tcache_event_hard()
56 tbin->lg_fill_div++; in tcache_event_hard()
65 tbin->low_water = tbin->ncached; in tcache_event_hard()
161 memmove(tbin->avail, &tbin->avail[tbin->ncached - rem], in tcache_bin_flush_small()
164 if ((int)tbin->ncached < tbin->low_water) in tcache_bin_flush_small()
165 tbin->low_water = tbin->ncached; in tcache_bin_flush_small()
244 memmove(tbin->avail, &tbin->avail[tbin->ncached - rem], in tcache_bin_flush_large()
247 if ((int)tbin->ncached < tbin->low_water) in tcache_bin_flush_large()
[all …]
H A Darena.c1989 arena_tcache_fill_small(arena_t *arena, tcache_bin_t *tbin, szind_t binind, in arena_tcache_fill_small() argument
1995 assert(tbin->ncached == 0); in arena_tcache_fill_small()
2002 tbin->lg_fill_div); i < nfill; i++) { in arena_tcache_fill_small()
2017 memmove(tbin->avail, &tbin->avail[nfill - i], in arena_tcache_fill_small()
2027 tbin->avail[nfill - 1 - i] = ptr; in arena_tcache_fill_small()
2031 bin->stats.nrequests += tbin->tstats.nrequests; in arena_tcache_fill_small()
2034 tbin->tstats.nrequests = 0; in arena_tcache_fill_small()
2037 tbin->ncached = i; in arena_tcache_fill_small()
/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Dtcache.h258 tbin->ncached--; in tcache_alloc_easy()
259 if (unlikely((int)tbin->ncached < tbin->low_water)) in tcache_alloc_easy()
260 tbin->low_water = tbin->ncached; in tcache_alloc_easy()
261 ret = tbin->avail[tbin->ncached]; in tcache_alloc_easy()
272 tcache_bin_t *tbin; in tcache_alloc_small() local
317 tcache_bin_t *tbin; in tcache_alloc_large() local
365 tcache_bin_t *tbin; in tcache_dalloc_small() local
380 tbin->avail[tbin->ncached] = ptr; in tcache_dalloc_small()
381 tbin->ncached++; in tcache_dalloc_small()
409 tbin->avail[tbin->ncached] = ptr; in tcache_dalloc_large()
[all …]
H A Darena.h450 void arena_tcache_fill_small(arena_t *arena, tcache_bin_t *tbin,