Commit Graph

8 Commits

Author SHA1 Message Date
Daniel Micay
8b912bc56b register snapshots 2014-05-12 02:52:32 -04:00
Daniel Micay
69b321c84b heap: replace exchange_free with deallocate
The `std::rt::heap` API is Rust's global allocator, so there's no need
to have this as a separate API.
2014-05-11 18:41:45 -04:00
Daniel Micay
32988db2bd heap: add a way to print allocator statistics 2014-05-11 17:41:36 -04:00
Daniel Micay
f3de28a920 mark rust_malloc/rust_free as unsafe
Support for this was added by 08237cad8d.
2014-05-11 17:41:36 -04:00
Daniel Micay
81fadbbc41 android workaround 2014-05-11 00:57:41 -04:00
Daniel Micay
138437956c initial port of the exchange allocator to jemalloc
In stage0, all allocations are 8-byte aligned. Passing a size and
alignment to free is not yet implemented everywhere (0 size and 8 align
are used as placeholders). Fixing this is part of #13994.

Closes #13616
2014-05-10 19:58:17 -04:00
Daniel Micay
aaf6e06b01 use jemalloc to implement Vec<T> 2014-05-10 19:58:17 -04:00
Daniel Micay
1b1ca6d546 add back jemalloc to the tree
This adds a `std::rt::heap` module with a nice allocator API. It's a
step towards fixing #13094 and is a starting point for working on a
generic allocator trait.

The revision used for the jemalloc submodule is the stable 3.6.0 release.

Closes #11807
2014-05-10 19:58:17 -04:00