Struct jemalloc_ctl::opt::Dss [−][src]
pub struct Dss(_);
A type providing access to the dss (sbrk(2)) allocation precedence as related to mmap(2)
allocation.
The following settings are supported if sbrk(2) is supported by the operating system:
"disabled", "primary", and "secondary"; otherwise only "disabled" is supported. The default is
"secondary" if sbrk(2) is supported by the operating system; "disabled" otherwise.
Examples
extern crate jemallocator; extern crate jemalloc_ctl; use jemalloc_ctl::opt::Dss; #[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; fn main() { let dss = Dss::new().unwrap(); println!("dss priority: {}", dss.get().unwrap()); }
Methods
impl Dss[src]
impl Dsspub fn new() -> Result<Dss>[src]
pub fn new() -> Result<Dss>Returns a new Dss.
pub fn get(&self) -> Result<&'static str>[src]
pub fn get(&self) -> Result<&'static str>Returns the dss allocation precedence.