Skip to main content

malloc_conf

Static malloc_conf 

Source
#[unsafe(no_mangle)]
pub static mut malloc_conf: *const c_char
Expand description

Provides the process-wide jemalloc startup configuration.

Jemalloc declares this symbol as a mutable const char * and reads it during allocator initialization, which can occur before main. The NUL-terminated options tune the cache and decay thresholds. CPU-affine arenas, metadata huge pages and background thread settings are requested only on the platforms whose jemalloc provides them.