diff --git a/cpp/src/plasma/store.cc b/cpp/src/plasma/store.cc index f6326ccf588..67f019afb25 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); }