1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 00:15:04 -05:00

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;