Simplify the logic when bumping lg_fill_div.

This commit is contained in:
Amaury Séchet 2024-07-24 21:16:11 +00:00 committed by Qi Wang
parent 8fefabd3a4
commit a25b9b8ba9

View file

@ -166,7 +166,7 @@ tcache_gc_small(tsd_t *tsd, tcache_slow_t *tcache_slow, tcache_t *tcache,
* the fill count is always at least 1.
*/
if ((cache_bin_ncached_max_get(cache_bin) >>
(tcache_slow->lg_fill_div[szind] + 1)) >= 1) {
tcache_slow->lg_fill_div[szind]) > 1) {
tcache_slow->lg_fill_div[szind]++;
}
}