mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03: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:
parent
7bb05e04be
commit
deb8e62a83
41 changed files with 920 additions and 251 deletions
|
|
@ -128,6 +128,8 @@ TEST_BEGIN(test_hpa_background_thread_purges) {
|
|||
test_skip_if(!config_stats);
|
||||
test_skip_if(!hpa_supported());
|
||||
test_skip_if(!have_background_thread);
|
||||
/* Skip since guarded pages cannot be allocated from hpa. */
|
||||
test_skip_if(san_enabled());
|
||||
|
||||
unsigned arena_ind = create_arena();
|
||||
/*
|
||||
|
|
@ -142,6 +144,8 @@ TEST_BEGIN(test_hpa_background_thread_enable_disable) {
|
|||
test_skip_if(!config_stats);
|
||||
test_skip_if(!hpa_supported());
|
||||
test_skip_if(!have_background_thread);
|
||||
/* Skip since guarded pages cannot be allocated from hpa. */
|
||||
test_skip_if(san_enabled());
|
||||
|
||||
unsigned arena_ind = create_arena();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue