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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user