diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/Init.cxx | 2 | ||||
-rw-r--r-- | src/util/HugeAllocator.hxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/input/Init.cxx b/src/input/Init.cxx index 5e64dcaed..0ee87c4d8 100644 --- a/src/input/Init.cxx +++ b/src/input/Init.cxx @@ -67,7 +67,7 @@ input_stream_global_init(Error &error) case InputPlugin::InitResult::UNAVAILABLE: if (error.IsDefined()) { FormatError(error, - "Input plugin '%s' is unavailable: ", + "Input plugin '%s' is unavailable", plugin->name); error.Clear(); } 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 |