Skip to content

Commit 9d865a9

Browse files
committed
populate pages
1 parent 93b8df8 commit 9d865a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cp-algo/util/new_big.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace cp_algo {
99
MAP_PRIVATE | MAP_ANONYMOUS,
1010
-1, 0);
1111
madvise(raw, len * sizeof(T), MADV_HUGEPAGE);
12+
madvise(raw, len * sizeof(T), MADV_POPULATE_WRITE);
1213
return static_cast<T*>(raw);
1314
}
1415
template<typename T>

0 commit comments

Comments
 (0)