Fast path: allow low-water mark changes.

This lets us put more allocations on an "almost as fast" path after a flush.
This results in around a 4% reduction in malloc cycles in prod workloads
(corresponding to about a 0.1% reduction in overall cycles).
This commit is contained in:
David Goldblatt
2020-03-04 08:58:42 -08:00
committed by David Goldblatt
parent 397da03865
commit d701a085c2
5 changed files with 86 additions and 72 deletions

View File

@@ -104,8 +104,7 @@ tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
assert(tcache->arena != NULL);
arena_tcache_fill_small(tsdn, arena, tcache, tbin, binind);
ret = cache_bin_alloc_easy(tbin, &tcache_bin_info[binind],
tcache_success);
ret = cache_bin_alloc(tbin, tcache_success);
return ret;
}