mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-17 02:16:24 +03:00
Don't purge huge extents when decay is off.
This commit is contained in:
parent
38a48e5741
commit
0f552ed673
2 changed files with 8 additions and 1 deletions
|
|
@ -1226,7 +1226,8 @@ extent_record(tsdn_t *tsdn, arena_t *arena, ehooks_t *ehooks, ecache_t *ecache,
|
|||
&arena->edata_cache, ehooks, rtree_ctx, ecache,
|
||||
edata, &coalesced, growing_retained);
|
||||
} while (coalesced);
|
||||
if (edata_size_get(edata) >= oversize_threshold) {
|
||||
if (edata_size_get(edata) >= oversize_threshold &&
|
||||
arena_may_force_decay(arena)) {
|
||||
/* Shortcut to purge the oversize extent eagerly. */
|
||||
malloc_mutex_unlock(tsdn, &ecache->mtx);
|
||||
arena_decay_extent(tsdn, arena, ehooks, edata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue