aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-17 19:27:59 +0100
committerMax Kellermann <max@duempel.org>2014-12-17 19:27:59 +0100
commit8400da9934df3e61f0dc792c7f9ce311b0103b39 (patch)
tree0e769e89fed8f2e3c1bd80e9623d6bad8aa82dc6 /src/util
parentae8bdd473c0481d2685dbdee4bd2df73c4199250 (diff)
parent6d89020f80290b3eec97abbe25cc5d52fbd7b5cf (diff)
downloadmpd-8400da9934df3e61f0dc792c7f9ce311b0103b39.tar.gz
mpd-8400da9934df3e61f0dc792c7f9ce311b0103b39.tar.xz
mpd-8400da9934df3e61f0dc792c7f9ce311b0103b39.zip
Merge tag 'v0.19.7'
Diffstat (limited to 'src/util')
-rw-r--r--src/util/HugeAllocator.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/HugeAllocator.hxx b/src/util/HugeAllocator.hxx
index e02e69f10..fa45e5610 100644
--- a/src/util/HugeAllocator.hxx
+++ b/src/util/HugeAllocator.hxx
@@ -71,7 +71,9 @@ static inline void *
HugeAllocate(size_t size)
{
// TODO: use MEM_LARGE_PAGES
- return VirtualAlloc(nullptr, size, MEM_RESERVE, PAGE_READWRITE);
+ return VirtualAlloc(nullptr, size,
+ MEM_COMMIT|MEM_RESERVE,
+ PAGE_READWRITE);
}
static inline void