Open
Description
jemallocator-global
is a library intended to make jemalloc your allocator. It works by declaring a static allocator with #[global_allocator]
.
However, a downstream crate linked with jemallocator-global
nonetheless uses the system malloc on MacOS X.
After experimenting a bit with #[global_allocator]
, it's behaving as though rustc optimizes away a whole crate if you don't seem to be using it; and it doesn't detect that the global allocator is always used.