aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/HugeAllocator.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/HugeAllocator.hxx')
-rw-r--r--src/util/HugeAllocator.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/HugeAllocator.hxx b/src/util/HugeAllocator.hxx
index e85f936dc..e02e69f10 100644
--- a/src/util/HugeAllocator.hxx
+++ b/src/util/HugeAllocator.hxx
@@ -70,7 +70,8 @@ gcc_malloc
static inline void *
HugeAllocate(size_t size)
{
- return VirtualAlloc(nullptr, size, MEM_LARGE_PAGES, PAGE_READWRITE);
+ // TODO: use MEM_LARGE_PAGES
+ return VirtualAlloc(nullptr, size, MEM_RESERVE, PAGE_READWRITE);
}
static inline void