Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-4296: [C++] [Plasma] Update dlmemalign call to prevent plasma store crash with -f flag #3434

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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