Function jemalloc_ctl::opt::zero [] [src]

pub fn zero() -> Result<bool>

Returns jemalloc's zeroing behavior.

Requires --enable-fill to have been specified during build configuration.

If enabled, jemalloc will initialize each byte of uninitialized allocated memory to 0. This is intended for debugging and will impact performance negatively. It is disabled by default.

Examples

println!("zeroing: {}", jemalloc_ctl::opt::zero().unwrap());