[sanitizer] fix the GetBlockBegin overflow bug while preserving the performance optim...
commit871b7fd4fdde47cbf36c2b5c19d679e87dd11df6
authorKostya Serebryany <kcc@google.com>
Thu, 16 May 2013 07:11:16 +0000 (16 07:11 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 16 May 2013 07:11:16 +0000 (16 07:11 +0000)
treed61431dadec689584b8fb07fccaf1ce7da45b064
parenta1560bd5d12ddf245ca44fa6a259e9b5c5f81933
[sanitizer] fix the GetBlockBegin overflow bug while preserving the performance optimization (use 32-bit division when possible). Improve the benchmarks that checks for performance of GetBlockBegin/GetMetaData

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181989 91177308-0d34-0410-b5e6-96231b3b80d8
lib/sanitizer_common/sanitizer_allocator.h
lib/sanitizer_common/tests/sanitizer_allocator_test.cc