about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2014-09-15 15:37:01 -0400
committerDaniel Micay <danielmicay@gmail.com>2014-09-15 16:48:20 -0400
commit84b37374bf31b463c36f70123e870f52db19c740 (patch)
tree73d698cc2a76498a748c5e186f3005ce19517009 /src/rustllvm/RustWrapper.cpp
parent396f9106173b941e880a0f311bc2d1429a68c983 (diff)
downloadrust-84b37374bf31b463c36f70123e870f52db19c740.tar.gz
rust-84b37374bf31b463c36f70123e870f52db19c740.zip
heap: optimize EMPTY to avoid relocations
Sized deallocation makes it pointless to provide an address that never
overlaps with pointers returned by an allocator. Code can branch on the
capacity of the allocation instead of a comparison with this sentinel.

This improves the situation in #8859, and the remaining issues are only
from the logging API, which should be disabled by default in optimized
release builds anyway along with debug assertions. The remaining issues
are part of #17081.

Closes #8859
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions