mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 05:33:06 +00:00
Implement guard pages.
Adding guarded extents, which are regular extents surrounded by guard pages (mprotected). To reduce syscalls, small guarded extents are cached as a separate eset in ecache, and decay through the dirty / muzzy / retained pipeline as usual.
This commit is contained in:
@@ -91,7 +91,7 @@ do_alloc_free_purge(void *arg) {
|
||||
bool deferred_work_generated;
|
||||
edata_t *edata = pa_alloc(TSDN_NULL, &test_data->shard, PAGE,
|
||||
PAGE, /* slab */ false, /* szind */ 0, /* zero */ false,
|
||||
&deferred_work_generated);
|
||||
/* guarded */ false, &deferred_work_generated);
|
||||
assert_ptr_not_null(edata, "");
|
||||
pa_dalloc(TSDN_NULL, &test_data->shard, edata,
|
||||
&deferred_work_generated);
|
||||
|
||||
Reference in New Issue
Block a user