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