Skip to content

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Jan 28, 2026

Rationale for this change

This patch was integrated upstream in microsoft/mimalloc#1139

Are these changes tested?

By existing CI.

Are there any user-facing changes?

No.

The patch was integrated upstream in microsoft/mimalloc#1139
@github-actions
Copy link

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@pitrou
Copy link
Member Author

pitrou commented Jan 28, 2026

@github-actions crossbow submit -g cpp

@github-actions
Copy link

Revision: 4aeff20

Submitted crossbow builds: ursacomputing/crossbow @ actions-5539a1b788

Task Status
example-cpp-minimal-build-static GitHub Actions
example-cpp-minimal-build-static-system-dependency GitHub Actions
example-cpp-tutorial GitHub Actions
test-build-cpp-fuzz GitHub Actions
test-conda-cpp GitHub Actions
test-conda-cpp-valgrind GitHub Actions
test-debian-12-cpp-amd64 GitHub Actions
test-debian-12-cpp-i386 GitHub Actions
test-debian-experimental-cpp-gcc-15 GitHub Actions
test-fedora-42-cpp GitHub Actions
test-ubuntu-22.04-cpp GitHub Actions
test-ubuntu-22.04-cpp-20 GitHub Actions
test-ubuntu-22.04-cpp-bundled GitHub Actions
test-ubuntu-22.04-cpp-emscripten GitHub Actions
test-ubuntu-22.04-cpp-no-threading GitHub Actions
test-ubuntu-24.04-cpp GitHub Actions
test-ubuntu-24.04-cpp-bundled-offline GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-14 GitHub Actions
test-ubuntu-24.04-cpp-minimal-with-formats GitHub Actions
test-ubuntu-24.04-cpp-thread-sanitizer GitHub Actions

@pitrou pitrou changed the title EXP: [C++] Remove mimalloc patch GH-49042: [C++] Remove mimalloc patch Jan 28, 2026
@pitrou pitrou marked this pull request as ready for review January 28, 2026 13:41
@pitrou pitrou requested review from kou and raulcd January 28, 2026 13:42
Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We added patch on a bunch of places for this to work. We can probably remove that now, right?
See the original commit:
e1f727c

We only use patch on thrift but that seems to be only required for Clang, this was there prior to the mimalloc change and installing patch wasn't required before.

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
find_program(PATCH patch)
if(PATCH)
list(APPEND
THRIFT_PATCH_COMMAND
${PATCH}
-p1
-i)
else()

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Jan 28, 2026
@pitrou
Copy link
Member Author

pitrou commented Jan 28, 2026

As you prefer, but patch is a small and generally useful utility, so I don't think we gain much by removing it?

For example 248 kB on Debian 13, with no dependencies except libc:

# LANG=C apt show patch
Package: patch
Version: 2.8-2
Status: install ok installed
Priority: optional
Section: vcs
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
Installed-Size: 248 kB
Depends: libc6 (>= 2.34)
Suggests: ed, diffutils-doc

Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough, we probably have a bunch of dependencies on several docker images that are not required anymore and patch isn't going to be the problematic one:

        autoconf \
        ccache \
        clang-${llvm} \
        cmake \
        curl \
        g++ \
        gcc \
        gdb \
        git \
        libbenchmark-dev \
        libboost-filesystem-dev \
        libboost-system-dev \
        libbrotli-dev \
        libbz2-dev \
        libc-ares-dev \
        libcurl4-openssl-dev \
        libgflags-dev \
        libgmock-dev \
        libgoogle-glog-dev \
        libgrpc++-dev \
        libidn2-dev \
        libkrb5-dev \
        libldap-dev \
        liblz4-dev \
        libnghttp2-dev \
        libprotobuf-dev \
        libprotoc-dev \
        libpsl-dev \
        libre2-dev \
        librtmp-dev \
        libsnappy-dev \
        libsqlite3-dev \
        libssh-dev \
        libssh2-1-dev \
        libssl-dev \
        libthrift-dev \
        libutf8proc-dev \
        libxml2-dev \
        libxsimd-dev \
        libzstd-dev \
        llvm-${llvm}-dev \
        make \
        ninja-build \
        nlohmann-json3-dev \
        npm \
        opentelemetry-cpp-dev \
        patch \
        pkg-config \
        protobuf-compiler-grpc \
        python3-dev \
        python3-pip \
        python3-venv \
        rapidjson-dev \
        rsync \
        tzdata \
        zlib1g-dev

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting changes Awaiting changes labels Jan 28, 2026
@pitrou
Copy link
Member Author

pitrou commented Jan 28, 2026

fair enough, we probably have a bunch of dependencies on several docker images that are not required anymore and patch isn't going to be the problematic one:

I've tried trimming some of them in #49032 but it turns out that most of them are probably necessary.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@kou kou merged commit 1880d3a into apache:main Jan 28, 2026
52 of 54 checks passed
@kou kou removed the awaiting merge Awaiting merge label Jan 28, 2026
@github-actions github-actions bot added the awaiting merge Awaiting merge label Jan 28, 2026
@pitrou pitrou deleted the remove-mimalloc-patch branch January 29, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants