| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-06-08 | Turn `#[allocator]` into a built-in attribute and rename it to ↵ | Vadim Petrochenkov | -1/+2 | |
| `#[rustc_allocator]` | ||||
| 2019-05-04 | Fix intra-doc link resolution failure on re-exporting libstd | Taiki Endo | -0/+18 | |
| 2019-04-18 | make liballoc internal test suite mostly pass in Miri | Ralf Jung | -0/+1 | |
| 2019-02-13 | Clarify guarantees for `Box` allocation | Jethro Beekman | -0/+3 | |
| 2019-02-03 | liballoc: revert nested imports style changes. | Mazdak Farrokhzad | -9/+5 | |
| 2019-02-02 | liballoc: apply uniform_paths. | Mazdak Farrokhzad | -1/+1 | |
| 2019-02-02 | liballoc: refactor & fix some imports. | Mazdak Farrokhzad | -5/+9 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-11-12 | global allocators: add a few comments | Ralf Jung | -0/+4 | |
| 2018-08-20 | Replace usages of ptr::offset with ptr::{add,sub}. | Corey Farwell | -1/+1 | |
| 2018-08-14 | Add doc examples for std::alloc::{alloc,alloc_zeroed}. | Corey Farwell | -0/+31 | |
| 2018-06-18 | Rename OOM to allocation error | Simon Sapin | -7/+7 | |
| The acronym is not descriptive unless one has seen it before. * Rename the `oom` function to `handle_alloc_error`. It was **stabilized in 1.28**, so if we do this at all we need to land it this cycle. * Rename `set_oom_hook` to `set_alloc_error_hook` * Rename `take_oom_hook` to `take_alloc_error_hook` Bikeshed: `alloc` v.s. `allocator`, `error` v.s. `failure` | ||||
| 2018-06-11 | More alloc docs tweaks | Simon Sapin | -2/+4 | |
| 2018-06-11 | Stabilize alloc::oom (but not set_oom_hook or take_oom_hook) | Simon Sapin | -1/+1 | |
| 2018-06-11 | Stabilize alloc free functions for the global allocators. | Simon Sapin | -4/+4 | |
| 2018-06-11 | Stablize the alloc module without changing stability of its contents. | Simon Sapin | -6/+5 | |
| 2018-06-11 | Document memory allocation APIs | Simon Sapin | -0/+65 | |
| Add some docs where they were missing, attempt to fix them where they were out of date. | ||||
| 2018-06-11 | Remove the deprecated Heap type/const | Simon Sapin | -9/+0 | |
| 2018-06-11 | Replace `impl GlobalAlloc for Global` with a set of free functions | Mike Hommey | -23/+25 | |
| 2018-06-11 | Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAlloc | Mike Hommey | -18/+15 | |
| 2018-05-30 | Pass a `Layout` to `oom` | Mike Hommey | -6/+7 | |
| As discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-384893456 and subsequent, there are use-cases where the OOM handler needs to know the size of the allocation that failed. The alignment might also be a cause for allocation failure, so providing it as well can be useful. | ||||
| 2018-05-24 | std: Ensure OOM is classified as `nounwind` | Alex Crichton | -0/+1 | |
| OOM can't unwind today, and historically it's been optimized as if it can't unwind. This accidentally regressed with recent changes to the OOM handler, so this commit adds in a codegen test to assert that everything gets optimized away after the OOM function is approrpiately classified as nounwind Closes #50925 | ||||
| 2018-05-17 | Auto merge of #50629 - Mark-Simulacrum:stage-step, r=alexcrichton | bors | -46/+1 | |
| Switch to bootstrapping from 1.27 It's possible the Float trait could be removed from core, but I couldn't tell whether it was intended to be removed or not. @SimonSapin may be able to comment more here; we can presumably also do that in a follow up PR as this one is already quite large. | ||||
| 2018-05-17 | Switch to 1.26 bootstrap compiler | Mark Simulacrum | -46/+1 | |
| 2018-05-17 | Rename trans to codegen everywhere. | Irina Popa | -1/+1 | |
| 2018-04-27 | Auto merge of #50097 - glandium:box_free, r=nikomatsakis | bors | -3/+11 | |
| Partial future-proofing for Box<T, A> In some ways, this is similar to @eddyb's PR #47043 that went stale, but doesn't cover everything. Notably, this still leaves Box internalized as a pointer in places, so practically speaking, only ZSTs can be practically added to the Box type with the changes here (the compiler ICEs otherwise). The Box type is not changed here, that's left for the future because I want to test that further first, but this puts things in place in a way that hopefully will make things easier. | ||||
| 2018-04-25 | Switch box_free to take the destructured contents of Box | Mike Hommey | -3/+11 | |
| As of now, Box only contains a Unique pointer, so this is the sole argument to box_free. Consequently, we remove the code supporting the previous box_free signature. We however keep the old definition for bootstrapping purpose. | ||||
| 2018-04-22 | Remove Alloc::oom | Steven Fackler | -5/+0 | |
| 2018-04-22 | Replace GlobalAlloc::oom with a lang item | Steven Fackler | -17/+18 | |
| 2018-04-12 | Rename alloc::Void to alloc::Opaque | Simon Sapin | -13/+13 | |
| 2018-04-12 | Remove conversions for allocated pointers | Simon Sapin | -3/+3 | |
| One was now unused, and `NonNull::new(…).ok_or(AllocErr)` feels short enough for the few cases that need the other conversion. | ||||
| 2018-04-12 | Use NonNull<Void> instead of *mut u8 in the Alloc trait | Mike Hommey | -9/+10 | |
| Fixes #49608 | ||||
| 2018-04-12 | impl GlobalAlloc for Global | Simon Sapin | -35/+50 | |
| 2018-04-12 | Restore Global.oom() functionality | Simon Sapin | -0/+16 | |
| … now that #[global_allocator] does not define a symbol for it | ||||
| 2018-04-12 | realloc with a new size only, not a full new layout. | Simon Sapin | -13/+9 | |
| Changing the alignment with realloc is not supported. | ||||
| 2018-04-12 | Remove the now-unit-struct AllocErr parameter of oom() | Simon Sapin | -3/+3 | |
| 2018-04-12 | Use the GlobalAlloc trait for #[global_allocator] | Simon Sapin | -148/+40 | |
| 2018-04-12 | Make AllocErr a zero-size unit struct | Simon Sapin | -16/+16 | |
| 2018-04-12 | Separate alloc::heap::Alloc trait for stage0 #[global_allocator] | Simon Sapin | -5/+0 | |
| 2018-04-12 | Actually deprecate the Heap type | Simon Sapin | -2/+6 | |
| 2018-04-12 | Rename the Heap type to Global | Simon Sapin | -9/+14 | |
| … since it is the entry point for what’s registered with `#[global_allocator]` | ||||
| 2018-04-12 | Actually deprecate heap modules. | Simon Sapin | -1/+1 | |
| 2018-04-12 | Rename `heap` modules in the core, alloc, and std crates to `alloc` | Simon Sapin | -0/+291 | |
