mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 09:03:33 +03:00
HPA: Purge across retained extents.
This lets us cut down on the number of expensive system calls we perform.
This commit is contained in:
parent
347523517b
commit
41fd56605e
4 changed files with 160 additions and 25 deletions
|
|
@ -18,12 +18,14 @@ edata_init_test(edata_t *edata) {
|
|||
static void
|
||||
test_psset_fake_purge(hpdata_t *ps) {
|
||||
hpdata_purge_state_t purge_state;
|
||||
hpdata_alloc_allowed_set(ps, false);
|
||||
hpdata_purge_begin(ps, &purge_state);
|
||||
void *addr;
|
||||
size_t size;
|
||||
while (hpdata_purge_next(ps, &purge_state, &addr, &size)) {
|
||||
}
|
||||
hpdata_purge_end(ps, &purge_state);
|
||||
hpdata_alloc_allowed_set(ps, true);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue