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
@@ -166,7 +166,7 @@ namespace snmalloc
|
||||
*/
|
||||
inline uint16_t threshold_for_waking_slab(sizeclass_t sizeclass)
|
||||
{
|
||||
// #ifdef CHECK_CLIENT
|
||||
// #ifdef SNMALLOC_CHECK_CLIENT
|
||||
return sizeclass_metadata.waking[sizeclass];
|
||||
// #else
|
||||
// UNUSED(sizeclass);
|
||||
|
||||
Reference in New Issue
Block a user