Josh Matthews
e7979380ba
Revert "Upgrade to rustc 1.27.0-nightly (8a37c75a3 2018-05-02)"
...
This reverts commit 46ad811017
.
2018-05-18 11:44:47 -05:00
Simon Sapin
46ad811017
Upgrade to rustc 1.27.0-nightly (8a37c75a3 2018-05-02)
2018-05-04 11:38:45 +02:00
Simon Sapin
7dbc524207
Fork the jemallocator crate, fix for nightly-2018-04-15
...
CC https://github.com/alexcrichton/jemallocator/pull/40 ,
https://github.com/rust-lang/rust/pull/49669
The new version of jemallocator requires a more recent jemalloc
https://github.com/alexcrichton/jemallocator/pull/34
which doesn’t build on our current Android toolchain
https://github.com/jemalloc/jemalloc/issues/1175 .
To avoid blocking on figuring that out, duplicate ~70 lines
from jemallocator and use the older jemalloc-sys directly.
2018-04-16 08:56:08 +02:00
Simon Sapin
6319ad0124
FreeType: don’t use usable_size() as deallocation size
...
Instead use C-level malloc()/free() so that the size doesn’t need
to be known during deallocation, since FreeType doesn’t provide it.
Hopefully fixes https://github.com/servo/servo/issues/19058
2017-10-30 18:22:30 +01:00
Simon Sapin
959ce482dd
Stop relying on linking details of std’s default allocator
...
We’ve been bitten before by symbol names changing:
https://github.com/servo/heapsize/pull/46
and upstream is planning to stop using jemalloc by default:
https://github.com/rust-lang/rust/issues/33082#issuecomment-309781465
So use the (relatively) new `#[global_allocator]` attribute
to explicitly select the system allocator on Windows
and jemalloc (now in an external crate) on other platforms.
This choice matches current defaults.
2017-10-19 09:52:50 +02:00