about summary refs log tree commit diff
path: root/src/liballoc/oom.rs
AgeCommit message (Collapse)AuthorLines
2017-07-05rustc: Implement the #[global_allocator] attributeAlex Crichton-61/+0
This PR is an implementation of [RFC 1974] which specifies a new method of defining a global allocator for a program. This obsoletes the old `#![allocator]` attribute and also removes support for it. [RFC 1974]: https://github.com/rust-lang/rfcs/pull/197 The new `#[global_allocator]` attribute solves many issues encountered with the `#![allocator]` attribute such as composition and restrictions on the crate graph itself. The compiler now has much more control over the ABI of the allocator and how it's implemented, allowing much more freedom in terms of how this feature is implemented. cc #27389
2016-11-10drop an unnecessary newlineJorge Aparicio-1/+0
2016-11-10use an 'imp' module to reduce the amount of cfgsJorge Aparicio-27/+32
2016-10-30make `alloc` and `collections` compilable for thumbv6m-none-eabiJorge Aparicio-0/+15
by cfging away `alloc::Arc` and changing OOM to abort for this target
2016-01-12Add set_oom_handler and use it print a message when out of memoryAmanieu d'Antras-0/+42