Commit 2fec4635 authored by Max Kellermann's avatar Max Kellermann

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.
parent 1affc641
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment