Lines Matching refs:decay
60 arena_decay_t *decay, size_t npages_new) NOT_REACHED in background_thread_create()
104 decay_npurge_after_interval(arena_decay_t *decay, size_t interval) {
108 sum += decay->backlog[i] * h_steps[i];
111 sum += decay->backlog[i] * (h_steps[i] - h_steps[i - interval]);
118 arena_decay_compute_purge_interval_impl(tsdn_t *tsdn, arena_decay_t *decay,
120 if (malloc_mutex_trylock(tsdn, &decay->mtx)) {
126 ssize_t decay_time = atomic_load_zd(&decay->time_ms, ATOMIC_RELAXED);
133 uint64_t decay_interval_ns = nstime_ns(&decay->interval);
139 if (decay->backlog[i] > 0) {
167 npurge_lb = decay_npurge_after_interval(decay, lb);
172 npurge_ub = decay_npurge_after_interval(decay, ub);
183 npurge = decay_npurge_after_interval(decay, target);
197 malloc_mutex_unlock(tsdn, &decay->mtx);
646 arena_decay_t *decay, size_t npages_new) {
662 if (malloc_mutex_trylock(tsdn, &decay->mtx)) {
666 ssize_t decay_time = atomic_load_zd(&decay->time_ms, ATOMIC_RELAXED);
671 uint64_t decay_interval_ns = nstime_ns(&decay->interval);
676 if (nstime_compare(&diff, &decay->epoch) <= 0) {
679 nstime_subtract(&diff, &decay->epoch);
722 malloc_mutex_unlock(tsdn, &decay->mtx);