Also advise when unmapping pages

This commit is contained in:
Eric Fischer
2016-04-04 16:14:26 -07:00
parent b1d3849889
commit 72e485f285
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -1152,6 +1152,7 @@ void *run_thread(void *vargs) {
}
}
madvise(geomstart, arg->geom_size[j], MADV_FREE);
if (munmap(geomstart, arg->geom_size[j]) != 0) {
perror("munmap geom");
}