about summary refs log tree commit diff
path: root/src/liballoc/libc_heap.rs
AgeCommit message (Collapse)AuthorLines
2014-10-25get rid of libc_heap::{malloc_raw, realloc_raw}Daniel Micay-48/+0
The C standard library functions should be used directly. The quirky NULL / zero-size allocation workaround is no longer necessary and was adding an extra branch to the allocator code path in a build without jemalloc. This is a small step towards liballoc being compatible with handling OOM errors instead of aborting (#18292). [breaking-change]
2014-09-16Fallout from renamingAaron Turon-3/+3
2014-08-19A few minor documentation fixesP1start-3/+3
2014-06-16alloc: Refactor OOM into a common routineAlex Crichton-5/+2
2014-05-17std: Refactor liballoc out of lib{std,sync}Alex Crichton-0/+51
This commit is part of the libstd facade RFC, issue #13851. This creates a new library, liballoc, which is intended to be the core allocation library for all of Rust. It is pinned on the basic assumption that an allocation failure is an abort or failure. This module has inherited the heap/libc_heap modules from std::rt, the owned/rc modules from std, and the arc module from libsync. These three pointers are currently the three most core pointer implementations in Rust. The UnsafeArc type in std::sync should be considered deprecated and replaced by Arc<Unsafe<T>>. This commit does not currently migrate to this type, but future commits will continue this refactoring.