Move arena decay getters to PA.

This commit is contained in:
David Goldblatt 2020-03-10 11:04:02 -07:00 committed by David Goldblatt
parent 48a2cd6d79
commit e77f47a85a
4 changed files with 18 additions and 9 deletions

View file

@ -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);