Skip to content
Myr

Disable jemalloc on macOS

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This is a workaround for #498. See issue for details. closes #498

authored by sharkdp · committed by David Peter · parent c8746f6 · Browse files · 3 files+7 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−3 removed

  • other:+7 added−3 removed

3 files+7 added−3 removed

modified:ci/script.bash+1 added-1 removed
modified:src/main.rs+2 added-1 removed
31 unmodified lines
32use crate::options::Options;33use crate::regex_helper::pattern_has_uppercase_char;3435// We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/48136// FIXME: re-enable jemalloc on macOS, see comment in Cargo.toml file for more infos36#[cfg(all(not(windows), not(target_env = "musl")))]37#[cfg(all(not(windows), not(target_os = "macos"), not(target_env = "musl")))]38#[global_allocator]39static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;4041fn run() -> Result<ExitCode> {
386 unmodified lines
modified:Cargo.toml+4 added-1 removed