Even if jemalloc feature is used do not use it on msvc

Fixes #2233
This commit is contained in:
kjeremy 2019-11-14 11:47:18 -05:00
parent f2c64ba15d
commit fc9c2915c7
3 changed files with 22 additions and 20 deletions

View file

@ -24,7 +24,7 @@ pub use crate::memory_usage::{Bytes, MemoryUsage};
// We use jemalloc mainly to get heap usage statistics, actual performance
// difference is not measures.
#[cfg(feature = "jemalloc")]
#[cfg(all(feature = "jemalloc", not(target_env = "msvc")))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;