aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--src/util/HugeAllocator.hxx3
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 165985925..b40023771 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
ver 0.19.7 (not yet released)
* playlist
- don't skip non-existent songs in "listplaylist"
+* fix memory allocator bug on Windows
ver 0.19.6 (2014/12/08)
* decoder
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