fix: never use jemalloc on windows
This commit is contained in:
@@ -61,6 +61,8 @@ url = "=2.5.7"
|
||||
|
||||
[target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86_64"), any(target_os = "linux", target_os = "macos", target_os = "windows")))'.dependencies]
|
||||
mimalloc = { version = "=0.1.48", optional = true }
|
||||
|
||||
[target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86_64"), any(target_os = "linux", target_os = "macos")))'.dependencies]
|
||||
tikv-jemallocator = { version = "=0.6.1", optional = true }
|
||||
|
||||
[features]
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ static GLOBAL: dhat::Alloc = dhat::Alloc;
|
||||
#[cfg(all(
|
||||
feature = "jemalloc",
|
||||
any(target_arch = "aarch64", target_arch = "x86_64"),
|
||||
any(target_os = "linux", target_os = "macos", target_os = "windows"),
|
||||
any(target_os = "linux", target_os = "macos"),
|
||||
))]
|
||||
#[global_allocator]
|
||||
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
|
||||
|
||||
Reference in New Issue
Block a user