From d84046daf99c433990b1de87b25952783119b094 Mon Sep 17 00:00:00 2001 From: Anurag Khandelwal Date: Fri, 18 Jan 2019 20:57:35 -0800 Subject: [PATCH] Update dlmemalign call to prevent plasma store crash with -f flag --- cpp/src/plasma/store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/plasma/store.cc b/cpp/src/plasma/store.cc index f6326ccf588de..67f019afb2504 100644 --- a/cpp/src/plasma/store.cc +++ b/cpp/src/plasma/store.cc @@ -913,7 +913,7 @@ class PlasmaStoreRunner { // achieve that by mallocing and freeing a single large amount of space. // that maximum allowed size up front. if (use_one_memory_mapped_file) { - void* pointer = plasma::dlmemalign(kBlockSize, system_memory); + void* pointer = plasma::dlmemalign(kBlockSize, system_memory - 8192); ARROW_CHECK(pointer != nullptr); plasma::dlfree(pointer); }