We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 570f8db commit 7c79ff8Copy full SHA for 7c79ff8
src/memory/HugeArray.hxx
@@ -6,6 +6,10 @@
6
#include "HugeAllocator.hxx"
7
#include "util/SpanCast.hxx"
8
9
+#ifdef __linux__
10
+#include "system/PageAllocator.hxx"
11
+#endif
12
+
13
#include <utility>
14
15
/**
@@ -51,6 +55,10 @@ public:
51
55
HugeForkCow(std::as_writable_bytes(buffer), enable);
52
56
}
53
57
58
+ void Populate() noexcept {
59
+ HugePopulate(std::as_writable_bytes(buffer));
60
+ }
61
54
62
void Discard() noexcept {
63
HugeDiscard(std::as_writable_bytes(buffer));
64
0 commit comments