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
println!("max cached allocation size: {}", 1 << jemalloc_ctl::opt::lg_tcache_max().unwrap());