mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-25 22:36:27 +03:00
Remove strict_min_purge_interval option
Option `experimental_hpa_strict_min_purge_interval` was expected to be temporary to simplify rollout of a bugfix. Now, when bugfix rollout is complete it is safe to remove this option.
This commit is contained in:
parent
6cc42173cb
commit
4f4fd42447
7 changed files with 21 additions and 41 deletions
11
src/hpa.c
11
src/hpa.c
|
|
@ -512,14 +512,9 @@ hpa_try_hugify(tsdn_t *tsdn, hpa_shard_t *shard) {
|
|||
static bool
|
||||
hpa_min_purge_interval_passed(tsdn_t *tsdn, hpa_shard_t *shard) {
|
||||
malloc_mutex_assert_owner(tsdn, &shard->mtx);
|
||||
if (shard->opts.experimental_strict_min_purge_interval) {
|
||||
uint64_t since_last_purge_ms = shard->central->hooks.ms_since(
|
||||
&shard->last_purge);
|
||||
if (since_last_purge_ms < shard->opts.min_purge_interval_ms) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
uint64_t since_last_purge_ms = shard->central->hooks.ms_since(
|
||||
&shard->last_purge);
|
||||
return since_last_purge_ms >= shard->opts.min_purge_interval_ms;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue