Function jemalloc_ctl::opt::lg_tcache_max [−][src]
pub fn lg_tcache_max() -> Result<usize>
Returns the maximum size class (log base 2) to cache in the thread-specific cache (tcache).
At a minimum, all small size classes are cached, and at a maximum all large size classes are cached. The default maximum is 32 KiB (2^15).
Examples
extern crate jemallocator; extern crate jemalloc_ctl; #[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; fn main() { println!("max cached allocation size: {}", 1 << jemalloc_ctl::opt::lg_tcache_max().unwrap()); }