Refactor chunk_purge_wrapper() to take extent argument.

This commit is contained in:
Jason Evans 2016-05-23 15:10:25 -07:00
parent 0eb6f08959
commit 5c6be2bdd3
4 changed files with 10 additions and 12 deletions

View file

@ -1542,8 +1542,8 @@ arena_purge_stashed(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks,
flags = CHUNK_MAP_DECOMMITTED;
} else {
flag_unzeroed = chunk_purge_wrapper(tsdn, arena,
chunk_hooks, chunk, chunksize, pageind <<
LG_PAGE, run_size) ? CHUNK_MAP_UNZEROED : 0;
chunk_hooks, extent, pageind << LG_PAGE,
run_size) ? CHUNK_MAP_UNZEROED : 0;
flags = flag_unzeroed;
}
arena_mapbits_large_set(chunk, pageind+npages-1, 0,