Skip to content
Myr

Allow use to disable jemalloc

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

jemalloc will require special flags on devices where page size is not 4K. With default options fd will not work on a Mac Mini M1 where hardware only allow 16K paging size. This commit will allow the user to turn off jemalloc (using --no-default-features) under special circumstances where jemalloc is not usable.

authored by eatradish · committed by David Peter · parent da7ea79 · Browse files · 2 files+7 added−2 removed
This commit

State

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

Diff stats

2 files+7 added−2 removed

  • other:+7 added−2 removed

2 files+7 added−2 removed

modified:src/main.rs+2 added-1 removed
37 unmodified lines
38 not(windows),39 not(target_os = "android"),40 not(target_os = "macos"),41 not(target_os = "freebsd"),42 not(target_env = "musl")42 not(target_env = "musl"),43 feature = "use-jemalloc"44))]45#[global_allocator]46static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;47
520 unmodified lines
modified:Cargo.toml+5 added-1 removed