From 8a70202a98620fe007734a0b5317acb5ee27f9e3 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 27 May 2017 08:45:11 +0300 Subject: [PATCH] Fix. --- unix/memory_unix.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/unix/memory_unix.c b/unix/memory_unix.c index fad7f730..2e794a03 100644 --- a/unix/memory_unix.c +++ b/unix/memory_unix.c @@ -21,9 +21,6 @@ * along with this program. If not, see . */ -#ifndef __MEMORY_H__ -#define __MEMORY_H__ - #include #include #include @@ -45,7 +42,7 @@ const char * persistent_memory_allocate() { persistent_memory = mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_POPULATE, 0, 0); if (persistent_memory == MAP_FAILED) { - persistent_memory = _mm_malloc(size, 4096); + persistent_memory = _mm_malloc(size, 16); return persistent_memory; } @@ -77,6 +74,3 @@ void persistent_memory_free() { _mm_free(persistent_memory); } } - - -#endif /* __MEMORY_H__ */