We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b8df8 commit 9d865a9Copy full SHA for 9d865a9
cp-algo/util/new_big.hpp
@@ -9,6 +9,7 @@ namespace cp_algo {
9
MAP_PRIVATE | MAP_ANONYMOUS,
10
-1, 0);
11
madvise(raw, len * sizeof(T), MADV_HUGEPAGE);
12
+ madvise(raw, len * sizeof(T), MADV_POPULATE_WRITE);
13
return static_cast<T*>(raw);
14
}
15
template<typename T>
0 commit comments