1#[cfg(any(
6 not(any(
7 target_os = "linux",
8 target_family = "wasm",
9 target_env = "musl",
10 all(target_os = "linux", any(target_arch = "aarch64", target_arch = "arm"))
11 )),
12 all(
13 target_os = "linux",
14 not(any(
15 target_family = "wasm",
16 target_env = "musl",
17 all(target_os = "linux", any(target_arch = "aarch64", target_arch = "arm"))
18 ))
19 )
20))]
21#[global_allocator]
22static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
23
24#[cfg(all(target_os = "linux", any(target_arch = "aarch64", target_arch = "arm")))]
28#[global_allocator]
29static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;