jemalloc still pulled in with extern crate alloc_system
on nightlies >= 2017-07-07
#43277
Labels
A-allocators
Area: Custom and system allocators
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It seems that ever since the 2017-07-07 nightly, using the
alloc_system
crate causes jemalloc to be linked in. For example, if I change the default hello world sample crate to the following:then the binary built by the 2017-07-07 toolchain contains jemalloc symbols, while the binary built by the 2017-07-06 toolchain does not.
Could this be related to the allocator PRs that have been merged recently? Or perhaps the code above is no longer the way to select the system allocator?
Versions:
nightly-2017-07-06-x86_64-unknown-linux-gnu
(rustc 1.20.0-nightly (3610a70ce 2017-07-05)
)nightly-2017-07-07-x86_64-unknown-linux-gnu
(rustc 1.20.0-nightly (696412de7 2017-07-06)
)The text was updated successfully, but these errors were encountered: