use jemallocator::Jemalloc;
#[global_allocator]
static A: Jemalloc = Jemalloc;
fn background_threads() -> bool {
jemalloc_ctl::opt::background_thread::read().unwrap()
}
#[test]
fn background_threads_runtime_defaults() {
if !cfg!(feature = "background_threads_runtime_support") {
assert!(!background_threads());
return;
}
assert_eq!(background_threads(), cfg!(feature = "background_threads"));
}