diff options
author | Max Kellermann <max@duempel.org> | 2014-12-12 09:53:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-12 13:20:58 +0100 |
commit | 2fec4635425f2cf3fb56a5c69f78d273e766c7ee (patch) | |
tree | bfccaa47526f49e10b63d213c904cd83b5c1fc92 /src/util | |
parent | 1affc641c452baa42efb8a0611c71a1b8b3fbdf3 (diff) | |
download | mpd-2fec4635425f2cf3fb56a5c69f78d273e766c7ee.tar.gz mpd-2fec4635425f2cf3fb56a5c69f78d273e766c7ee.tar.xz mpd-2fec4635425f2cf3fb56a5c69f78d273e766c7ee.zip |
util/HugeAllocator: disable MEM_LARGE_PAGES on Windows
MEM_LARGE_PAGES does not appear to work. Instead, MEM_RESERVE appears
to be necessary. Until I figure this out, this large pages are
disabled.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/HugeAllocator.hxx | 3 |
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 |