madvise: Support MADV_DONTDUMP and MADV_DODUMP on anonymous map

Change-Id: I231b62ed6803b797ec749ac70a66cdf8236204bd
refs: #1373
This commit is contained in:
TOIDA,Suguru
2020-03-06 15:02:38 +09:00
parent 01d06cb218
commit b2618a98f5
5 changed files with 126 additions and 0 deletions

View File

@ -5383,6 +5383,8 @@ SYSCALL_DECLARE(madvise)
}
}
else if(advice == MADV_DONTFORK || advice == MADV_DOFORK);
else if (advice == MADV_DONTDUMP || advice == MADV_DODUMP) {
}
else if (advice == MADV_NORMAL) {
/*
* Normally, the settings of MADV_RANDOM and