This is an automated email from the ASF dual-hosted git repository.
zanmato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new b74038235c GH-45219: [C++][Examples] Update examples to disable
mimalloc (#45220)
b74038235c is described below
commit b74038235c8cff955c639011f3030ea2196e1024
Author: Rossi Sun <[email protected]>
AuthorDate: Fri Jan 10 13:38:58 2025 +0800
GH-45219: [C++][Examples] Update examples to disable mimalloc (#45220)
### Rationale for this change
I think the intention was to disable the default allocator which used to be
jemalloc. However since #44951 we have switched the default allocator from
jemalloc to mimalloc. We should update the examples.
### What changes are included in this PR?
Change disabling jemalloc to disabling mimalloc for examples.
### Are these changes tested?
Manually tested.
### Are there any user-facing changes?
None.
* GitHub Issue: #45219
Authored-by: Rossi Sun <[email protected]>
Signed-off-by: Rossi Sun <[email protected]>
---
cpp/examples/minimal_build/build_arrow.sh | 2 +-
cpp/examples/tutorial_examples/build_arrow.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpp/examples/minimal_build/build_arrow.sh
b/cpp/examples/minimal_build/build_arrow.sh
index 402c312e4b..7045439c1a 100755
--- a/cpp/examples/minimal_build/build_arrow.sh
+++ b/cpp/examples/minimal_build/build_arrow.sh
@@ -26,7 +26,7 @@ pushd $ARROW_BUILD_DIR
# Enable the CSV reader as it's used by the example third-party build
cmake /arrow/cpp \
-DARROW_CSV=ON \
- -DARROW_JEMALLOC=OFF \
+ -DARROW_MIMALLOC=OFF \
$ARROW_CMAKE_OPTIONS
make -j$NPROC
diff --git a/cpp/examples/tutorial_examples/build_arrow.sh
b/cpp/examples/tutorial_examples/build_arrow.sh
index ec72a288c7..4c08abdaae 100755
--- a/cpp/examples/tutorial_examples/build_arrow.sh
+++ b/cpp/examples/tutorial_examples/build_arrow.sh
@@ -29,7 +29,7 @@ cmake /arrow/cpp \
-DARROW_DATASET=ON \
-DARROW_FILESYSTEM=ON \
-DARROW_PARQUET=ON \
- -DARROW_JEMALLOC=OFF \
+ -DARROW_MIMALLOC=OFF \
$ARROW_CMAKE_OPTIONS
make -j$NPROC