Add back jemalloc support

This commit is contained in:
Jonas Schievink
2021-01-18 19:25:55 +01:00
parent 6764d790ac
commit 9b5fa1c61a
7 changed files with 94 additions and 4 deletions

View File

@@ -15,6 +15,10 @@ use vfs::AbsPathBuf;
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[cfg(all(feature = "jemalloc", not(target_env = "msvc")))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
fn main() {
if let Err(err) = try_main() {
eprintln!("{}", err);