jevmalloc_sys/
env.rs

1/// `jemalloc` is known not to work on these targets:
2pub static UNSUPPORTED_TARGETS: &[&str] =
3	&["rumprun", "bitrig", "emscripten", "fuchsia", "redox", "wasm32"];
4
5/// `jemalloc-sys` is not tested on these targets in CI:
6pub static UNTESTED_TARGETS: &[&str] = &["openbsd", "msvc"];
7
8/// `jemalloc`'s background_thread support is known not to work on these
9/// targets:
10pub static NO_BG_THREAD_TARGETS: &[&str] = &["musl"];
11
12/// targets that don't support unprefixed `malloc`
13// “it was found that the `realpath` function in libc would allocate with libc
14// malloc  (not jemalloc malloc), and then the standard library would free with
15// jemalloc free,  causing a segfault.”
16// https://github.com/rust-lang/rust/commit/e3b414d8612314e74e2b0ebde1ed5c6997d28e8d
17// https://github.com/rust-lang/rust/commit/536011d929ecbd1170baf34e09580e567c971f95
18// https://github.com/rust-lang/rust/commit/9f3de647326fbe50e0e283b9018ab7c41abccde3
19// https://github.com/rust-lang/rust/commit/ed015456a114ae907a36af80c06f81ea93182a24
20pub static NO_UNPREFIXED_MALLOC_TARGETS: &[&str] = &["android", "dragonfly", "musl", "darwin"];