mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Simplify the logic in tcache_gc_small.
This commit is contained in:
parent
8d8379da44
commit
5afff2e44e
1 changed files with 2 additions and 3 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue