Skip to main content

reconcile_jemalloc

Function reconcile_jemalloc 

Source
fn reconcile_jemalloc(
    jemalloc: Option<bool>,
    override_allocator: Option<OverrideAllocator>,
    section: &str,
) -> Option<OverrideAllocator>
Expand description

Reconciles the deprecated jemalloc boolean option with the new override-allocator option.

Emits a warning if jemalloc is present and errors out if it is set but override-allocator is not jemalloc. The allocator is overridden if either option is set.