Skip to content

Commit

Permalink
What if MAP_NORESERVE
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki0iq committed Mar 27, 2024
1 parent 222330f commit 6bee3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sandbox_tests/tests/cow_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ script: |
#include <unistd.h>

int main() {
char *p =
mmap(NULL, 10 * 1024 * 1024, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
char *p = mmap(NULL, 10 * 1024 * 1024, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0);
if (p == MAP_FAILED) {
perror("mmap");
return 1;
Expand Down

0 comments on commit 6bee3f4

Please sign in to comment.