Skip to content

Commit 81de6fc

Browse files
committed
Update dlmemalign call to prevent plasma store crash with -f flag
1 parent 501cde9 commit 81de6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/src/plasma/store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ class PlasmaStoreRunner {
913913
// achieve that by mallocing and freeing a single large amount of space.
914914
// that maximum allowed size up front.
915915
if (use_one_memory_mapped_file) {
916-
void* pointer = plasma::dlmemalign(kBlockSize, system_memory);
916+
void* pointer = plasma::dlmemalign(kBlockSize, system_memory - 8192);
917917
ARROW_CHECK(pointer != nullptr);
918918
plasma::dlfree(pointer);
919919
}

0 commit comments

Comments
 (0)