diff options
| author | Josh Stone <jistone@redhat.com> | 2023-08-26 11:50:16 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2023-08-26 11:50:16 -0700 |
| commit | 1c6d867d78475fd8c6274e2b64ebb27735b6cabf (patch) | |
| tree | 5ab19a8542cf658ae3db95299b20fe9f6eefdfb9 /compiler/rustc_interface/src | |
| parent | 22d41ae90facbffdef9115809e8b6c1f71ebbf7c (diff) | |
| download | rust-1c6d867d78475fd8c6274e2b64ebb27735b6cabf.tar.gz rust-1c6d867d78475fd8c6274e2b64ebb27735b6cabf.zip | |
wasi: round up the size for `aligned_alloc`
C11 `aligned_alloc` requires that the size be a multiple of the alignment. This is enforced in the wasi-libc emmalloc implementation, which always returns NULL if the size is not a multiple. (The default `MALLOC_IMPL=dlmalloc` does not currently check this.)
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
