Struct tikv_jemalloc_ctl::opt::zero
source · pub struct zero;
Expand description
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
use tikv_jemalloc_ctl::opt;
let zero = opt::zero::read().unwrap();
println!("zeroing: {}", zero);
Implementations§
Auto Trait Implementations§
impl Freeze for zero
impl RefUnwindSafe for zero
impl Send for zero
impl Sync for zero
impl Unpin for zero
impl UnwindSafe for zero
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more