Skip to content

Commit

Permalink
GH-45219: [C++][Examples] Update examples to disable mimalloc (#45220)
Browse files Browse the repository at this point in the history
### 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]>
  • Loading branch information
zanmato1984 authored Jan 10, 2025
1 parent 5181c24 commit b740382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/examples/minimal_build/build_arrow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cpp/examples/tutorial_examples/build_arrow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b740382

Please sign in to comment.