From a25b9b8ba91881964be3083db349991bbbbf1661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20S=C3=A9chet?= Date: Wed, 24 Jul 2024 21:16:11 +0000 Subject: [PATCH] Simplify the logic when bumping lg_fill_div. --- src/tcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcache.c b/src/tcache.c index 4144524d..b90907ad 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -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]++; } }