mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-15 09:26:21 +03:00
Extract large-cacheable tcache check into tcache_can_cache_large
This commit is contained in:
parent
3c1c6ae419
commit
b6cfaa4fe2
3 changed files with 10 additions and 9 deletions
|
|
@ -652,9 +652,7 @@ arena_dalloc_promoted_impl(
|
|||
}
|
||||
szind_t bumped_ind = sz_size2index(bumped_usize);
|
||||
if (bumped_usize >= SC_LARGE_MINCLASS && tcache != NULL
|
||||
&& bumped_ind < TCACHE_NBINS_MAX
|
||||
&& !tcache_bin_disabled(
|
||||
bumped_ind, &tcache->bins[bumped_ind], tcache->tcache_slow)) {
|
||||
&& tcache_can_cache_large(tcache, bumped_ind)) {
|
||||
tcache_dalloc_large(
|
||||
tsdn_tsd(tsdn), tcache, ptr, bumped_ind, slow_path);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue