diff options
author | Amaury Séchet <deadalnix@gmail.com> | 2024-05-03 00:31:49 +0000 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2024-05-02 18:52:19 -0700 |
commit | 5afff2e44e8d31ef1e9eb01d6b1327fe111835ed (patch) | |
tree | 2c8a3671e0d9d306a2a9df7e9ac260112ac2aec2 | |
parent | 8d8379da443f46dc976252b968cb9ca8e63ec974 (diff) | |
download | jemalloc_new-upstream-dev.tar.gz |
Simplify the logic in tcache_gc_small.upstream-dev
-rw-r--r-- | src/tcache.c | 5 |
1 files 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)); |