]> git.lizzy.rs Git - rust.git/commit
Auto merge of #41168 - Shizmob:jemalloc-musl, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 11 Apr 2017 08:57:39 +0000 (08:57 +0000)
committerbors <bors@rust-lang.org>
Tue, 11 Apr 2017 08:57:39 +0000 (08:57 +0000)
commit6edc59685382d3ec0b6b89b05897a22a597c48a1
tree0ab50b47109274afac573f535ae5325f9b8f6c9f
parent8d85504410e3e5dec2ea5fffd64b182d7a85750f
parent536011d929ecbd1170baf34e09580e567c971f95
Auto merge of #41168 - Shizmob:jemalloc-musl, r=alexcrichton

Fix jemalloc support for musl

Just like DragonFlyBSD, using the same symbols as the system allocator will result in a segmentation fault at runtime due to allocator mismatches. As such, it's better to prefix the jemalloc symbols instead, avoiding crashes.

We encountered this problem on a dynamically-linked musl target (with patches to Rust to make that possible, see #40113). It may not show up immediately obviously on the current statically-linked CRT targets.