Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | asan: rename the file (it's not 64-bit specific anymore) | Dmitry Vyukov | 2013-01-15 | 1 | -2/+2 | |
| | | | | llvm-svn: 172518 | |||||
* | Move large part of asan_test_utils.h to sanitizer_common. | Evgeniy Stepanov | 2013-01-14 | 2 | -1/+83 | |
| | | | | | | | | | Move my_rand() to the common header. This lets us avoid the use of rand_r in sanitizer_common tests. There is no rand_r on Android. llvm-svn: 172421 | |||||
* | Fix-up copypasto from r172410 | Alexey Samsonov | 2013-01-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 172419 | |||||
* | Build rules for sanitizer_common tests on Android. | Evgeniy Stepanov | 2013-01-14 | 1 | -0/+25 | |
| | | | | llvm-svn: 172410 | |||||
* | Remove thread-locals from sanitizer_common tests. | Evgeniy Stepanov | 2013-01-14 | 3 | -5/+4 | |
| | | | | | | Not supported on Android. llvm-svn: 172408 | |||||
* | [asan] add more frames to standalone_malloc_test | Kostya Serebryany | 2013-01-14 | 1 | -1/+25 | |
| | | | | llvm-svn: 172383 | |||||
* | asan: add missing file | Dmitry Vyukov | 2013-01-14 | 1 | -0/+128 | |
| | | | | llvm-svn: 172381 | |||||
* | asan/tsan: move blocking mutex from asan to sanitizer_common | Dmitry Vyukov | 2013-01-14 | 1 | -0/+1 | |
| | | | | llvm-svn: 172380 | |||||
* | asan/tsan: faster memory allocator | Dmitry Vyukov | 2013-01-11 | 1 | -9/+18 | |
| | | | | | | replace lists with arrays llvm-svn: 172217 | |||||
* | asan: improve allocator benchmark | Dmitry Vyukov | 2013-01-11 | 1 | -0/+1 | |
| | | | | llvm-svn: 172213 | |||||
* | asan: improve the benchmark | Dmitry Vyukov | 2013-01-11 | 1 | -5/+7 | |
| | | | | llvm-svn: 172209 | |||||
* | asan/tsan: fix bug in list implementation | Dmitry Vyukov | 2013-01-11 | 1 | -0/+17 | |
| | | | | llvm-svn: 172187 | |||||
* | [sanitizer] fix the non-cmake build (2-nd attempt) | Kostya Serebryany | 2013-01-10 | 1 | -0/+1 | |
| | | | | llvm-svn: 172068 | |||||
* | [sanitizer] fix the non-cmake build | Kostya Serebryany | 2013-01-10 | 1 | -3/+3 | |
| | | | | llvm-svn: 172063 | |||||
* | [sanitizer] add standalone_malloc_test | Kostya Serebryany | 2013-01-10 | 1 | -0/+59 | |
| | | | | llvm-svn: 172061 | |||||
* | [asan] implement more strict checking for memset/etc parameters. Instead of ↵ | Kostya Serebryany | 2012-12-28 | 1 | -0/+20 | |
| | | | | | | checking the first and the last byte, we check the entire shadow region. This costs ~10 slowdown for the instrumented functions. Motivated by a nasty memset-buffer-overflow-by-140-bytes in chrome which was reported as a use-after-free or not at all llvm-svn: 171198 | |||||
* | Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can ↵ | Alexey Samsonov | 2012-12-27 | 1 | -12/+14 | |
| | | | | | | produce working binaries and use it in build rules for sanitizers tests llvm-svn: 171160 | |||||
* | [asan/tsan] when unmapping a chunk of user memory, apply ↵ | Kostya Serebryany | 2012-12-27 | 1 | -7/+30 | |
| | | | | | | madvise(MADV_DONTNEED) to the corresponding chunk of shadow memory. Also update sanitizer_allocator64_testlib.cc llvm-svn: 171144 | |||||
* | tsan: fix tests to consistently use internal functions (otherwise it leads ↵ | Dmitry Vyukov | 2012-12-25 | 2 | -2/+3 | |
| | | | | | | to false positives) llvm-svn: 171057 | |||||
* | [sanitizer] increase the maximum size class of the fast allocator. This ↵ | Kostya Serebryany | 2012-12-25 | 1 | -1/+1 | |
| | | | | | | should save quite a bit of memory in tsan/msan (and later in asan). This also puts more stress on the large allocator. Add a couple of checks llvm-svn: 171055 | |||||
* | [sanitizer] fix gcc warnings, enable one tests under asan_allocator2 | Kostya Serebryany | 2012-12-24 | 1 | -2/+2 | |
| | | | | llvm-svn: 171036 | |||||
* | [sanitizer] make LargeMmapAllocator::GetBlockBegin faster by not using a ↵ | Kostya Serebryany | 2012-12-24 | 1 | -6/+15 | |
| | | | | | | linked list llvm-svn: 171035 | |||||
* | [sanitizer] rework the size class map in the sanitizer allocator: make the ↵ | Kostya Serebryany | 2012-12-24 | 1 | -38/+17 | |
| | | | | | | differences between size classes more uniform. llvm-svn: 171031 | |||||
* | [Sanitizer] CMake build rules for unittests: depend on headers when ↵ | Alexey Samsonov | 2012-12-21 | 1 | -1/+7 | |
| | | | | | | compiling a file with custom clang. llvm-svn: 170897 | |||||
* | [Sanitizer] Don't implicitly add object files to the list of dependencies ↵ | Alexey Samsonov | 2012-12-21 | 1 | -6/+8 | |
| | | | | | | when building compiler_rt unittests. Fix sanitizer_common and asan build rules accordingly. This also fixes check-sanitizer command on Ninja. llvm-svn: 170870 | |||||
* | [Sanitizer] Fix CMake build rules for sanitizer_common tests to respect ↵ | Alexey Samsonov | 2012-12-20 | 1 | -10/+32 | |
| | | | | | | universal static libraries on Mac llvm-svn: 170698 | |||||
* | [Sanitizer] Modify CMake build rules for sanitizer_common unit tests: build ↵ | Alexey Samsonov | 2012-12-20 | 1 | -7/+51 | |
| | | | | | | them with fresh Clang for both 32- and 64-bits (if possible) llvm-svn: 170691 | |||||
* | [sanitizer] one more stability fix in 64-bit allocator | Kostya Serebryany | 2012-12-19 | 1 | -3/+4 | |
| | | | | llvm-svn: 170498 | |||||
* | [sanitizer] fix LargeMmapAllocator::GetBlockBegin | Kostya Serebryany | 2012-12-18 | 1 | -7/+11 | |
| | | | | llvm-svn: 170434 | |||||
* | [sanitizer] fix a bug that has crept into the sanitizer allocator and caused ↵ | Kostya Serebryany | 2012-12-15 | 1 | -3/+6 | |
| | | | | | | SEGV on allocations between 1Mb and 2Mb, improve the test llvm-svn: 170274 | |||||
* | [Sanitizer] remove extra typename | Alexey Samsonov | 2012-12-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 170208 | |||||
* | [sanitizer] add AllocatorLeakTest | Kostya Serebryany | 2012-12-14 | 1 | -0/+31 | |
| | | | | llvm-svn: 170206 | |||||
* | tsan: fix lint warning | Dmitry Vyukov | 2012-12-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 170202 | |||||
* | tsan: disable allocator tests in debug build | Dmitry Vyukov | 2012-12-14 | 1 | -0/+5 | |
| | | | | llvm-svn: 170187 | |||||
* | tsan: comment out debug output in test | Dmitry Vyukov | 2012-12-14 | 1 | -3/+3 | |
| | | | | llvm-svn: 170186 | |||||
* | [sanitizer] change the way SizeClassAllocator64 allocated memory from the ↵ | Kostya Serebryany | 2012-12-13 | 1 | -0/+2 | |
| | | | | | | system: instead of one huge mmap(NORESERVE) it does one huge mprotect and then does small on-demand mmaps. This allows us to call OnMap callbacks which are required to poison newly allocated memory in asan llvm-svn: 170097 | |||||
* | [sanitizer] add OnMap/OnUmap callbacks to the allocator interface | Kostya Serebryany | 2012-12-12 | 2 | -5/+59 | |
| | | | | llvm-svn: 169985 | |||||
* | [asan] fix lint, remove debug prints | Kostya Serebryany | 2012-12-07 | 1 | -1/+0 | |
| | | | | llvm-svn: 169620 | |||||
* | [sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just ↵ | Kostya Serebryany | 2012-12-07 | 1 | -0/+19 | |
| | | | | | | for linux so far (using prctl(PR_GET_NAME)) llvm-svn: 169598 | |||||
* | [sanitizer] try not to use libc mem* functions in sanitizer_common tests ↵ | Kostya Serebryany | 2012-12-07 | 1 | -1/+1 | |
| | | | | | | (conflicts with our own interceptors) llvm-svn: 169595 | |||||
* | [asan/msan] one more test for 32-bit allocator + minor code simplification | Kostya Serebryany | 2012-12-06 | 1 | -7/+19 | |
| | | | | llvm-svn: 169507 | |||||
* | [asan/msan] add BulkAllocate to the 32-bit allocator (and a test) | Kostya Serebryany | 2012-12-06 | 1 | -15/+30 | |
| | | | | llvm-svn: 169506 | |||||
* | [asan/msan] add GetBlockBegin to the 32-bit allocator (+test) | Kostya Serebryany | 2012-12-06 | 1 | -0/+2 | |
| | | | | llvm-svn: 169499 | |||||
* | [asan/msan] one more test for 32-bit allocator | Kostya Serebryany | 2012-12-06 | 1 | -9/+13 | |
| | | | | llvm-svn: 169497 | |||||
* | [asan/msan] new 32-bit allocator, basic functionality so far | Kostya Serebryany | 2012-12-06 | 1 | -17/+24 | |
| | | | | llvm-svn: 169496 | |||||
* | [tsan] add MmapAlignedOrDie | Kostya Serebryany | 2012-12-06 | 1 | -0/+15 | |
| | | | | llvm-svn: 169474 | |||||
* | [tsan] get rid of *allocator64* files, moving everything to *allocator* ↵ | Kostya Serebryany | 2012-12-05 | 4 | -317/+317 | |
| | | | | | | files. This will help with the 32-bit allocator implementation and testing llvm-svn: 169368 | |||||
* | [tsan] test the allocator with CompactSizeClassMap | Kostya Serebryany | 2012-12-04 | 1 | -5/+15 | |
| | | | | llvm-svn: 169270 | |||||
* | [tsan] minor interface refactoring | Kostya Serebryany | 2012-12-04 | 1 | -4/+3 | |
| | | | | llvm-svn: 169267 | |||||
* | [tsan] refactor the allocator tests to allow testing other flavours of the ↵ | Kostya Serebryany | 2012-12-04 | 1 | -18/+35 | |
| | | | | | | allocator (add templates) llvm-svn: 169264 |