Skip to content

Commit

Permalink
Use 8MB block size for native memory pool
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Feb 28, 2022
1 parent 09a8739 commit 6fa012d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/jni/dataset/jni_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Java_org_apache_arrow_dataset_jni_NativeMemoryPool_createListenableMemoryPool(
std::shared_ptr<ReservationListener> listener =
std::make_shared<ReserveFromJava>(vm, jlistener_ref);
auto memory_pool =
new ReservationListenableMemoryPool(arrow::default_memory_pool(), listener);
new ReservationListenableMemoryPool(arrow::default_memory_pool(), listener, 8 * 1024 * 1024);
return reinterpret_cast<jlong>(memory_pool);
JNI_METHOD_END(-1L)
}
Expand Down

0 comments on commit 6fa012d

Please sign in to comment.