aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-12 13:14:29 +0100
committerMax Kellermann <max@duempel.org>2014-12-12 13:14:29 +0100
commit4741d7bfe229b36f15379ca7eada908ae5fd0bce (patch)
tree518b2570daddf82dc616f5a6cc598cf3bac775a0 /src/util
parentaea99a1222079fce1d6bcfddb132c9dbd1abe874 (diff)
parent2fec4635425f2cf3fb56a5c69f78d273e766c7ee (diff)
downloadmpd-4741d7bfe229b36f15379ca7eada908ae5fd0bce.tar.gz
mpd-4741d7bfe229b36f15379ca7eada908ae5fd0bce.tar.xz
mpd-4741d7bfe229b36f15379ca7eada908ae5fd0bce.zip
Merge branch 'v0.19.x'
Diffstat (limited to 'src/util')
-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