I see that
config.toml.example changed, we now have:
# Link the compiler against `jemalloc`, where on Linux and OSX it should # override the default allocator for rustc and LLVM. #jemalloc = false
Did we change to not use jemalloc by default? Anybody know?
I bet @Alex Crichton or @simulacrum does =)
@nikomatsakis yeah jemalloc is no longer the default
@nikomatsakis rustc still uses it though in the platforms that it was using it before - rust programs do not.
how do I just make it not be used at all?
I usually disable it everywhere by default
so that things like valgrind etc work better
but I can't tell what's needed now
@jemalloc supports valgrind on linux only
so you want to disable it in rustc ? let me check
sorry wrong one: https://github.com/rust-lang/rust/pull/55238
RUST_CONFIGURE_ARGS="--enable-extended --enable-profiler --enable-lldb --set rust.jemalloc"
If you don't
--set rust.jemalloc it shouldn't use it.
in your config.toml you just put
jemalloc = false
the config.toml.example has it commented out
right, it looks like it defaults to
which suggests to me that it does not use jemalloc at all
at least, I interpret that was "uncomment is a no-op"
looking through the code, it indeed appears to be disabled by default =/
you can use
nm to check for jemalloc symbols in your binary to triple check
nm rustc | grep -E "nallocx"