Skip to content

Commit

Permalink
Update dlmemalign call to prevent plasma store crash with -f flag
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragkh authored and wesm committed Jan 20, 2019
1 parent a665b82 commit d84046d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/plasma/store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d84046d

Please sign in to comment.