diff options
| author | Mike Hommey <mh@glandium.org> | 2018-05-15 09:56:46 +0900 |
|---|---|---|
| committer | Mike Hommey <mh@glandium.org> | 2018-05-30 05:35:48 +0900 |
| commit | 0f4ef003ac1691d04f0ce519d1d78696689534aa (patch) | |
| tree | 389cc750501eda02bc699d4ac967f0000a546fa1 /src/rustllvm/RustWrapper.cpp | |
| parent | 5015fa346c1bf7e295fc16996ed0d3309c84f09a (diff) | |
| download | rust-0f4ef003ac1691d04f0ce519d1d78696689534aa.tar.gz rust-0f4ef003ac1691d04f0ce519d1d78696689534aa.zip | |
Pass a `Layout` to `oom`
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
