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
use jemalloc_ctl::opt::Dss; let dss = Dss::new().unwrap(); println!("dss priority: {}", dss.get().unwrap());
Methods
impl Dss
[src]
pub fn new() -> Result<Dss>
[src]
Returns a new Dss
.
pub fn get(&self) -> Result<&'static str>
[src]
Returns the dss allocation precedence.