From 5afff2e44e8d31ef1e9eb01d6b1327fe111835ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20S=C3=A9chet?= Date: Fri, 3 May 2024 00:31:49 +0000 Subject: [PATCH] Simplify the logic in tcache_gc_small. --- src/tcache.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tcache.c b/src/tcache.c index f9235541..2114ff95 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -154,11 +154,10 @@ tcache_gc_small(tsd_t *tsd, tcache_slow_t *tcache_slow, tcache_t *tcache, sizeof(nflush_uint8)); tcache_slow->bin_flush_delay_items[szind] -= nflush_uint8; return; - } else { - tcache_slow->bin_flush_delay_items[szind] - = tcache_gc_item_delay_compute(szind); } + tcache_slow->bin_flush_delay_items[szind] + = tcache_gc_item_delay_compute(szind); tcache_bin_flush_small(tsd, tcache, cache_bin, szind, (unsigned)(ncached - nflush));