diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-02-12 18:55:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-12 18:55:46 +0900 |
| commit | a50ccd980a9f9038e83918fe936c2640044d1ab5 (patch) | |
| tree | bedecd502f88aea2a7c70bf6317df4ab6cef9c0f /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 9bc003da11ce9eb227514b26384f3dd8273c4b90 (diff) | |
| parent | 97d1f8d9bbb6ae25d22f5193006becf37a57d226 (diff) | |
| download | rust-a50ccd980a9f9038e83918fe936c2640044d1ab5.tar.gz rust-a50ccd980a9f9038e83918fe936c2640044d1ab5.zip | |
Rollup merge of #69027 - TimDiekmann:zeroed-alloc, r=Amanieu
Add missing `_zeroed` varants to `AllocRef` The majority of the allocator wg has decided to add the missing `_zeroed` variants to `AllocRef`: > these should be added since they can be efficiently implemented with the `mremap` system call on Linux. `mremap` allows you to move/grow/shrink a memory mapping, and any new pages added for growth are guaranteed to be zeroed. > > If `AllocRef` does not have these methods then the user will have to manually write zeroes to the added memory since the API makes no guarantees on their contents. For the full discussion please see https://github.com/rust-lang/wg-allocators/issues/14. This PR provides default implementations for `realloc_zeroed`, `alloc_excess_zeroed`, `realloc_excess_zeroed`, and `grow_in_place_zeroed`. r? @Amanieu
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
