mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Move arena decay getters to PA.
This commit is contained in:
committed by
David Goldblatt
parent
48a2cd6d79
commit
e77f47a85a
@@ -1013,7 +1013,7 @@ extent_record(tsdn_t *tsdn, arena_t *arena, ehooks_t *ehooks, ecache_t *ecache,
|
||||
&coalesced, growing_retained);
|
||||
} while (coalesced);
|
||||
if (edata_size_get(edata) >= oversize_threshold &&
|
||||
arena_may_force_decay(arena)) {
|
||||
pa_shard_may_force_decay(&arena->pa_shard)) {
|
||||
/* Shortcut to purge the oversize extent eagerly. */
|
||||
malloc_mutex_unlock(tsdn, &ecache->mtx);
|
||||
extent_maximally_purge(tsdn, arena, ehooks, edata);
|
||||
|
||||
Reference in New Issue
Block a user