Backport changes from xmrig-aeon.

This commit is contained in:
XMRig 2017-04-30 02:56:47 +03:00
parent 3de7983826
commit caf7cda1d5
4 changed files with 31 additions and 67 deletions

View file

@ -93,7 +93,7 @@ const char * persistent_memory_allocate() {
persistent_memory = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE | MEM_LARGE_PAGES, PAGE_READWRITE);
if (!persistent_memory) {
persistent_memory = _mm_malloc(size, 4096);
persistent_memory = _mm_malloc(size, 16);
}
else {
persistent_memory_flags |= MEMORY_HUGEPAGES_ENABLED;