| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-06-01 | Make the OOM hook return `()` rather than `!` | Mike Hommey | -10/+12 | |
| Per discussion in https://github.com/rust-lang/rust/issues/51245#issuecomment-393651083 This allows more flexibility in what can be done with the API. This also splits `rtabort!` into `dumb_print` happening in the default hook and `abort_internal`, happening in the actual oom handler after calling the hook. Registering an empty function thus makes the oom handler not print anything but still abort. Cc: @alexcrichton | ||||
| 2018-05-30 | Add hooks allowing to override the `oom` behavior | Mike Hommey | -2/+46 | |
| 2018-05-30 | Pass a `Layout` to `oom` | Mike Hommey | -2/+2 | |
| 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-17 | Switch to 1.26 bootstrap compiler | Mark Simulacrum | -61/+0 | |
| 2018-04-22 | Replace GlobalAlloc::oom with a lang item | Steven Fackler | -2/+11 | |
| 2018-04-12 | Rename alloc::Void to alloc::Opaque | Simon Sapin | -3/+3 | |
| 2018-04-12 | Restore Global.oom() functionality | Simon Sapin | -0/+6 | |
| … now that #[global_allocator] does not define a symbol for it | ||||
| 2018-04-12 | Use the GlobalAlloc trait for #[global_allocator] | Simon Sapin | -99/+54 | |
| 2018-04-12 | Make AllocErr a zero-size unit struct | Simon Sapin | -30/+13 | |
| 2018-04-12 | Actually deprecate the Heap type | Simon Sapin | -1/+2 | |
| 2018-04-12 | Actually deprecate heap modules. | Simon Sapin | -3/+3 | |
| 2018-04-12 | Rename `heap` modules in the core, alloc, and std crates to `alloc` | Simon Sapin | -0/+176 | |
