madvise: support MADV_DONTDUMP/DODUMP

refs #661
This commit is contained in:
Tomoki Shirasawa
2017-09-26 14:21:40 +09:00
parent 9c847c0a8f
commit a2fbe99b60
3 changed files with 21 additions and 2 deletions

View File

@ -310,6 +310,8 @@ int gencore(struct thread *thread, void *regs,
mckernel's internal use. */
if (range->flag & VR_RESERVED)
continue;
if (range->flag & VR_DONTDUMP)
continue;
/* We need a chunk for each page for a demand paging area.
This can be optimized for spacial complexity but we would
lose simplicity instead. */