fix: never use jemalloc on windows

This commit is contained in:
monosans
2025-10-26 14:57:57 +03:00
parent 25c0330215
commit 674d227c9c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
View File
@@ -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;