swc_malloc/
lib.rs
#[cfg(any(
not(any(
target_os = "linux",
target_family = "wasm",
target_env = "musl",
all(target_os = "linux", any(target_arch = "aarch64", target_arch = "arm"))
)),
all(
target_os = "linux",
not(any(
target_family = "wasm",
target_env = "musl",
all(target_os = "linux", any(target_arch = "aarch64", target_arch = "arm"))
))
)
))]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[cfg(all(
target_os = "linux",
target_env = "gnu",
any(target_arch = "aarch64", target_arch = "arm")
))]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;