• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/jemalloc/src/

Lines Matching refs:tbin

44 	cache_bin_t *tbin;
46 tbin = tcache_small_bin_get(tcache, binind);
48 tbin = tcache_large_bin_get(tcache, binind);
50 if (tbin->low_water > 0) {
55 tcache_bin_flush_small(tsd, tcache, tbin, binind,
56 tbin->ncached - tbin->low_water + (tbin->low_water
68 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached
69 - tbin->low_water + (tbin->low_water >> 2), tcache);
71 } else if (tbin->low_water < 0) {
80 tbin->low_water = tbin->ncached;
90 cache_bin_t *tbin, szind_t binind, bool *tcache_success) {
94 arena_tcache_fill_small(tsdn, arena, tcache, tbin, binind,
99 ret = cache_bin_alloc_easy(tbin, tcache_success);
106 tbin_extents_lookup_size_check(tsdn_t *tsdn, cache_bin_t *tbin, szind_t binind,
121 rtree_ctx, (uintptr_t)*(tbin->avail - 1 - i), true,
134 tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, cache_bin_t *tbin,
139 assert((cache_bin_sz_t)rem <= tbin->ncached);
143 unsigned nflush = tbin->ncached - rem;
148 tbin_extents_lookup_size_check(tsd_tsdn(tsd), tbin, binind,
153 *(tbin->avail - 1 - i));
178 bin->stats.nrequests += tbin->tstats.nrequests;
179 tbin->tstats.nrequests = 0;
183 void *ptr = *(tbin->avail - 1 - i);
198 *(tbin->avail - 1 - ndeferred) = ptr;
216 bin->stats.nrequests += tbin->tstats.nrequests;
217 tbin->tstats.nrequests = 0;
221 memmove(tbin->avail - rem, tbin->avail - tbin->ncached, rem *
223 tbin->ncached = rem;
224 if (tbin->ncached < tbin->low_water) {
225 tbin->low_water = tbin->ncached;
230 tcache_bin_flush_large(tsd_t *tsd, cache_bin_t *tbin, szind_t binind,
235 assert((cache_bin_sz_t)rem <= tbin->ncached);
239 unsigned nflush = tbin->ncached - rem;
245 item_extent[i] = iealloc(tsd_tsdn(tsd), *(tbin->avail - 1 - i));
248 tbin_extents_lookup_size_check(tsd_tsdn(tsd), tbin, binind, nflush,
268 void *ptr = *(tbin->avail - 1 - i);
287 tbin->tstats.nrequests);
288 tbin->tstats.nrequests = 0;
297 void *ptr = *(tbin->avail - 1 - i);
310 *(tbin->avail - 1 - ndeferred) = ptr;
328 &tcache_arena->stats, binind, tbin->tstats.nrequests);
329 tbin->tstats.nrequests = 0;
332 memmove(tbin->avail - rem, tbin->avail - tbin->ncached, rem *
334 tbin->ncached = rem;
335 if (tbin->ncached < tbin->low_water) {
336 tbin->low_water = tbin->ncached;
516 cache_bin_t *tbin = tcache_small_bin_get(tcache, i);
517 tcache_bin_flush_small(tsd, tcache, tbin, i, 0);
520 assert(tbin->tstats.nrequests == 0);
524 cache_bin_t *tbin = tcache_large_bin_get(tcache, i);
525 tcache_bin_flush_large(tsd, tbin, i, 0, tcache);
528 assert(tbin->tstats.nrequests == 0);
608 cache_bin_t *tbin = tcache_small_bin_get(tcache, i);
611 bin->stats.nrequests += tbin->tstats.nrequests;
613 tbin->tstats.nrequests = 0;
617 cache_bin_t *tbin = tcache_large_bin_get(tcache, i);
619 tbin->tstats.nrequests);
620 tbin->tstats.nrequests = 0;