]> git.lizzy.rs Git - rust.git/commit
std: Stop prefixing jemalloc symbols
authorAlex Crichton <alex@alexcrichton.com>
Sun, 7 Feb 2016 06:54:35 +0000 (22:54 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 14 Feb 2016 19:50:40 +0000 (11:50 -0800)
commite3b414d8612314e74e2b0ebde1ed5c6997d28e8d
tree80f053d30c5f9d8451ad60738784d719a7d22074
parentcc719d2d7d1967b92e38b1dec6d19f10c5b42891
std: Stop prefixing jemalloc symbols

Now that we properly only link in jemalloc when building executables, we have
far less to worry about in terms of polluting the global namespace with the
`free` and `malloc` symbols on Linux. This commit will primarily allow LLVM to
use jemalloc so the compiler will only be using one allocator overall.

Locally this took compile time for libsyntax from 95 seconds to 89 (a 6%
improvement).
mk/rt.mk
src/liballoc_jemalloc/build.rs
src/liballoc_jemalloc/lib.rs