Enable guard pages in CHECK_CLIENT
Change the behaviour to use PROT_NONE for reservations in CHECK_CLIENT mode. This means that we only provide access once data is actually being used.
This commit is contained in:
committed by
Matthew Parkinson
parent
02d2ab8f7e
commit
9df0101dfd
@@ -80,7 +80,7 @@ namespace snmalloc
|
||||
static constexpr size_t MIN_CHUNK_SIZE = bits::one_at_bit(MIN_CHUNK_BITS);
|
||||
|
||||
// Minimum number of objects on a slab
|
||||
#ifdef CHECK_CLIENT
|
||||
#ifdef SNMALLOC_CHECK_CLIENT
|
||||
static constexpr size_t MIN_OBJECT_COUNT = 13;
|
||||
#else
|
||||
static constexpr size_t MIN_OBJECT_COUNT = 4;
|
||||
|
||||
Reference in New Issue
Block a user