mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
HPA: Use a whole-shard purging heuristic.
Previously, we used only hpdata-local information to decide whether to purge.
This commit is contained in:
parent
dc886e5608
commit
56e85c0e47
4 changed files with 86 additions and 34 deletions
|
|
@ -225,7 +225,6 @@ psset_update_begin(psset_t *psset, hpdata_t *ps) {
|
|||
|
||||
void
|
||||
psset_update_end(psset_t *psset, hpdata_t *ps) {
|
||||
hpdata_assert_consistent(ps);
|
||||
assert(hpdata_in_psset_get(ps));
|
||||
hpdata_updating_set(ps, false);
|
||||
psset_stats_insert(psset, ps);
|
||||
|
|
@ -258,6 +257,7 @@ psset_update_end(psset_t *psset, hpdata_t *ps) {
|
|||
hpdata_in_psset_hugify_container_set(ps, false);
|
||||
hpdata_hugify_list_remove(&psset->to_hugify, ps);
|
||||
}
|
||||
hpdata_assert_consistent(ps);
|
||||
}
|
||||
|
||||
hpdata_t *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue