mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-16 01:46:23 +03:00
Move arena decay getters to PA.
This commit is contained in:
parent
48a2cd6d79
commit
e77f47a85a
4 changed files with 18 additions and 9 deletions
|
|
@ -595,12 +595,12 @@ arena_maybe_decay(tsdn_t *tsdn, arena_t *arena, decay_t *decay,
|
|||
|
||||
ssize_t
|
||||
arena_dirty_decay_ms_get(arena_t *arena) {
|
||||
return decay_ms_read(&arena->pa_shard.decay_dirty);
|
||||
return pa_shard_dirty_decay_ms_get(&arena->pa_shard);
|
||||
}
|
||||
|
||||
ssize_t
|
||||
arena_muzzy_decay_ms_get(arena_t *arena) {
|
||||
return decay_ms_read(&arena->pa_shard.decay_muzzy);
|
||||
return pa_shard_muzzy_decay_ms_get(&arena->pa_shard);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue