| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-02 | default OOM handler: use non-unwinding panic (unless -Zoom=panic is set), to ↵ | Ralf Jung | -1/+1 | |
| match std handler | ||||
| 2022-09-03 | Forbid mixing `System` with sytem allocator calls | Christopher Durham | -1/+4 | |
| 2022-06-26 | Update `std::alloc::System` docs | Lukas Wirth | -1/+1 | |
| 2022-06-18 | make std not use &A: Allocator instance | Ralf Jung | -4/+4 | |
| 2022-06-07 | Add std::alloc::set_alloc_error_hook example | Lucas Dumont | -0/+14 | |
| 2022-05-04 | update `jemallocator` example to use 2018 edition import syntax | kraktus | -2/+0 | |
| 2022-04-05 | trivial cfg(bootstrap) changes | Pietro Albini | -3/+0 | |
| 2022-03-18 | Auto merge of #88098 - Amanieu:oom_panic, r=nagisa | bors | -1/+15 | |
| Implement -Z oom=panic This PR removes the `#[rustc_allocator_nounwind]` attribute on `alloc_error_handler` which allows it to unwind with a panic instead of always aborting. This is then used to implement `-Z oom=panic` as per RFC 2116 (tracking issue #43596). Perf and binary size tests show negligible impact. | ||||
| 2022-03-10 | Use implicit capture syntax in format_args | T-O-R-U-S | -1/+1 | |
| This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored). | ||||
| 2022-03-03 | Add -Z oom={panic,abort} command-line option | Amanieu d'Antras | -1/+15 | |
| 2021-05-19 | Rename `rterr` to `rtprintpanic` | Christiaan Dirkx | -1/+1 | |
| 2021-05-19 | Replace `sys_common::util::dumb_print` with `rterr!` | Christiaan Dirkx | -3/+1 | |
| 2021-01-07 | Fix safety comment | LingMan | -2/+3 | |
| The size assertion in the comment was inverted compared to the code. After fixing that the implication that `(new_size >= old_size) => new_size != 0` still doesn't hold so explain why `old_size != 0` at this point. | ||||
| 2020-12-17 | Add missing punctuation to std::alloc docs | pierwill | -1/+1 | |
| Add a period to first line of module docs to match other modules in std. | ||||
| 2020-12-04 | Rename `AllocRef` to `Allocator` and `(de)alloc` to `(de)allocate` | Tim Diekmann | -10/+10 | |
| 2020-11-10 | Add missing newline to error message of the default OOM hook | hyd-dev | -1/+1 | |
| 2020-09-28 | Rename AllocErr to AllocError | Jacob Hughes | -10/+10 | |
| 2020-09-22 | a few more &mut self -> self changes | blitzerr | -8/+8 | |
| 2020-09-22 | removing &mut self for other methods of AllocRef | blitzerr | -2/+2 | |
| 2020-09-21 | Changing the alloc() to accept &self instead of &mut self | blitzerr | -2/+2 | |
| 2020-09-08 | Capitalize safety comments | Flying-Toast | -1/+1 | |
| 2020-08-19 | Allow reallocation to different alignment | Tim Diekmann | -32/+53 | |
| 2020-08-18 | Make `grow_impl` unsafe | Tim Diekmann | -3/+6 | |
| 2020-08-18 | Add comment, which was removed by accident (again) | Tim Diekmann | -0/+2 | |
| 2020-08-18 | Clean up AllocRef implementation and documentation | Tim Diekmann | -77/+77 | |
| 2020-08-18 | Auto merge of #75621 - TimDiekmann:no-fast-realloc, r=Amanieu | bors | -17/+10 | |
| Remove fast path in reallocation for same layout sizes r? @Amanieu Before merging a perf-run should be done. Closes https://github.com/rust-lang/wg-allocators/issues/70 | ||||
| 2020-08-17 | Switch to intra-doc links for std/src/alloc.rs | Ellen | -9/+0 | |
| 2020-08-17 | Fix typo in comment | Tim Diekmann | -2/+2 | |
| 2020-08-17 | Remove fast path in reallocation for same layout sizes | Tim Diekmann | -17/+10 | |
| 2020-08-04 | Replace `Memoryblock` with `NonNull<[u8]>` | Tim Diekmann | -12/+16 | |
| 2020-07-29 | Simplify implementations of `AllocRef` for `Global` and `System` | Tim Diekmann | -124/+73 | |
| 2020-07-28 | Remove in-place allocation and revert to separate methods for zeroed allocations | Tim Diekmann | -66/+115 | |
| Fix docs | ||||
| 2020-07-27 | mv std libs to library/ | mark | -0/+379 | |
