-
- Downloads
Test mincore() on stack and malloc()ed memory
Unlike msync(), mincore() should also work on non-mmapped memory, such as stack and malloc()ed memory. Currently it doesn't - it fails on malloc()ed memory and only sometimes works on stacks (works on pthread stacks which are mmapped, but not on sched::thread stacks which are malloced by default). This patch adds a test to tst-mmap.cc to demonstrate this problem. The test currently fails, will be fixed in a follow-up patch.
Please register or sign in to comment