Cleanup and build fixes
This commit is contained in:
parent
f26b9a5a10
commit
d7508ba9f7
4 changed files with 16 additions and 16 deletions
|
@ -159,7 +159,7 @@ void Mem::allocate(ScratchPadMem& scratchPadMem, bool useHugePages)
|
|||
return;
|
||||
}
|
||||
|
||||
scratchPadMem.size = std::max(scratchPadMem.size, static_cast<size_t>(MEMORY));
|
||||
scratchPadMem.size = std::max(scratchPadMem.size + scratchPadMem.size % MEMORY, static_cast<size_t>(MEMORY));
|
||||
|
||||
scratchPadMem.memory = static_cast<uint8_t*>(VirtualAlloc(nullptr, scratchPadMem.size, MEM_COMMIT | MEM_RESERVE | MEM_LARGE_PAGES, PAGE_READWRITE));
|
||||
if (scratchPadMem.memory) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue