about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-04-02 11:06:19 +0900
committerMike Hommey <mh@glandium.org>2018-04-02 12:29:23 +0900
commit98175a8793942a60bce944050ba4fcb1cd067055 (patch)
tree23383cdb4799a0fdc37daf312b5b7fac31d06d65 /src/rustllvm/RustWrapper.cpp
parent06fa27d7c84a21af8449e06f3c50b243c4d5a7ad (diff)
downloadrust-98175a8793942a60bce944050ba4fcb1cd067055.tar.gz
rust-98175a8793942a60bce944050ba4fcb1cd067055.zip
Reject huge alignments on macos with system allocator only
ef8804ba277b055fdc3e6d148e680e3c1b597ad8 addressed #30170 by rejecting
huge alignments at the allocator API level, transforming a specific
platform bug/limitation into an enforced API limitation on all
platforms.

This change essentially reverts that commit, and instead makes alloc()
itself return AllocErr::Unsupported when receiving huge alignments.

This was discussed in https://github.com/rust-lang/rust/issues/32838#issuecomment-368348408
and following.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions