diff options
| author | Kostya Serebryany <kcc@google.com> | 2013-11-23 12:49:19 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2013-11-23 12:49:19 +0000 |
| commit | a2fde9484f98686d39f54618cf40b63dde92acf7 (patch) | |
| tree | 91559e7d9a2eb1b168ab0fe5eb0b7bf3ed2d5bee /compiler-rt/lib/sanitizer_common/sanitizer_allocator.h | |
| parent | 364b59e7f2d2ad0225d5afea042df36f5a4f4d00 (diff) | |
| download | bcm5719-llvm-a2fde9484f98686d39f54618cf40b63dde92acf7.tar.gz bcm5719-llvm-a2fde9484f98686d39f54618cf40b63dde92acf7.zip | |
[sanitizer] use 16-byte aligned bzero in performance critical place (mostly for lsan)
llvm-svn: 195549
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_allocator.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h index 6075cfe92aa..81e40ed1516 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h @@ -1191,7 +1191,7 @@ class CombinedAllocator { if (alignment > 8) CHECK_EQ(reinterpret_cast<uptr>(res) & (alignment - 1), 0); if (cleared && res) - internal_memset(res, 0, size); + internal_bzero_aligned16(res, RoundUpTo(size, 16)); return res; } |

