Skip to main content

override_c_allocator_in_binary

Macro override_c_allocator_in_binary 

Source
macro_rules! override_c_allocator_in_binary {
    () => { ... };
}
Expand description

This macro overrides the C allocator (i.e., malloc) in final binaries by linking jemalloc with the override feature enabled. The C allocator is used by the default Rust allocator (alloc::System) on Unix targets but not on Windows targets.