Skip to main content

MALLOC_CONF_PREFIXED

Static MALLOC_CONF_PREFIXED 

Source
#[unsafe(export_name = "_rjem_malloc_conf")]
pub static MALLOC_CONF_PREFIXED: &[u8]
Expand description

Provides the jemalloc startup configuration under the symbol name a prefixed build reads.

Jemalloc renames its public symbols when configured with a prefix, which jevmalloc-sys does for musl, Apple, Android, DragonFly and OpenBSD, and which a substituted JEMALLOC_OVERRIDE library may do on any target. Defining both names lets the linked allocator take whichever one it declares and leaves the other unreferenced.