mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 00:57:19 +03:00
HPA: Generalize purging.
Previously, we would purge a hugepage only when it's completely empty. With this change, we can purge even when only partially empty. Although the heuristic here is still fairly primitive, this infrastructure can scale to become more advanced.
This commit is contained in:
parent
70692cfb13
commit
30b9e8162b
5 changed files with 208 additions and 64 deletions
|
|
@ -169,6 +169,7 @@ TEST_BEGIN(test_hugify) {
|
|||
expect_false(hpdata_changing_state_get(&hpdata), "");
|
||||
hpdata_hugify_begin(&hpdata);
|
||||
expect_true(hpdata_changing_state_get(&hpdata), "");
|
||||
|
||||
hpdata_hugify_end(&hpdata);
|
||||
expect_false(hpdata_changing_state_get(&hpdata), "");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue