Merge branch 'jemallocfeature' into 'next'
feat: allow disabling jemalloc via feature See merge request famedly/conduit!285
This commit is contained in:
commit
d55992dc83
2 changed files with 6 additions and 6 deletions
|
@ -26,10 +26,10 @@ use tracing_subscriber::{prelude::*, EnvFilter};
|
|||
pub use conduit::*; // Re-export everything from the library crate
|
||||
pub use rocket::State;
|
||||
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
|
||||
use tikv_jemallocator::Jemalloc;
|
||||
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
|
||||
#[global_allocator]
|
||||
static GLOBAL: Jemalloc = Jemalloc;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue