madvise arguments are not flags. (#470)
You can't or together multiple `madvise` flags in a single call.
This commit is contained in:
@@ -67,7 +67,8 @@ namespace snmalloc
|
||||
if constexpr (DEBUG)
|
||||
memset(p, 0x5a, size);
|
||||
|
||||
madvise(p, size, MADV_FREE | MADV_NOCORE);
|
||||
madvise(p, size, MADV_NOCORE);
|
||||
madvise(p, size, MADV_FREE);
|
||||
|
||||
if constexpr (PalEnforceAccess)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user