From dde40b91e4413964ec5421052fecc853331d3d87 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 6 Oct 2023 09:32:26 +0900 Subject: [PATCH] Disable jemalloc by default --- ci/scripts/cpp_build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.sh index 1f5596e2a50e1..3f22587a4a50d 100755 --- a/ci/scripts/cpp_build.sh +++ b/ci/scripts/cpp_build.sh @@ -53,6 +53,12 @@ if [ "${GITHUB_ACTIONS:-false}" = "true" ]; then esac fi +if [ "${ARROW_ENABLE_THREADING:-ON}" == "ON" ]; then + ARROW_JEMALLOC_DEFAULT=ON +else + ARROW_JEMALLOC_DEFAULT=OFF +fi + if [ "${ARROW_USE_CCACHE}" == "ON" ]; then echo -e "===\n=== ccache statistics before build\n===" ccache -sv 2>/dev/null || ccache -s @@ -118,7 +124,7 @@ cmake \ -DARROW_GCS=${ARROW_GCS:-OFF} \ -DARROW_HDFS=${ARROW_HDFS:-ON} \ -DARROW_INSTALL_NAME_RPATH=${ARROW_INSTALL_NAME_RPATH:-ON} \ - -DARROW_JEMALLOC=${ARROW_JEMALLOC:-ON} \ + -DARROW_JEMALLOC=${ARROW_JEMALLOC:-${ARROW_JEMALLOC_DEFAULT}} \ -DARROW_JSON=${ARROW_JSON:-ON} \ -DARROW_LARGE_MEMORY_TESTS=${ARROW_LARGE_MEMORY_TESTS:-OFF} \ -DARROW_MIMALLOC=${ARROW_MIMALLOC:-OFF} \