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__ */