fix unused import without feature jemalloc_conf
fix span passed by value Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
07ec9d6d85
commit
aa4d2e2363
2 changed files with 3 additions and 4 deletions
|
@ -8,7 +8,6 @@ use std::{
|
|||
};
|
||||
|
||||
use arrayvec::ArrayVec;
|
||||
use const_str::concat_bytes;
|
||||
use tikv_jemalloc_ctl as mallctl;
|
||||
use tikv_jemalloc_sys as ffi;
|
||||
use tikv_jemallocator as jemalloc;
|
||||
|
@ -20,7 +19,7 @@ use crate::{
|
|||
|
||||
#[cfg(feature = "jemalloc_conf")]
|
||||
#[unsafe(no_mangle)]
|
||||
pub static malloc_conf: &[u8] = concat_bytes!(
|
||||
pub static malloc_conf: &[u8] = const_str::concat_bytes!(
|
||||
"lg_extent_max_active_fit:4",
|
||||
",oversize_threshold:16777216",
|
||||
",tcache_max:2097152",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue