summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* asan: rename the file (it's not 64-bit specific anymore)Dmitry Vyukov2013-01-151-2/+2
| | | | llvm-svn: 172518
* Move large part of asan_test_utils.h to sanitizer_common.Evgeniy Stepanov2013-01-142-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 r172410Alexey Samsonov2013-01-141-1/+1
| | | | llvm-svn: 172419
* Build rules for sanitizer_common tests on Android.Evgeniy Stepanov2013-01-141-0/+25
| | | | llvm-svn: 172410
* Remove thread-locals from sanitizer_common tests.Evgeniy Stepanov2013-01-143-5/+4
| | | | | | Not supported on Android. llvm-svn: 172408
* [asan] add more frames to standalone_malloc_testKostya Serebryany2013-01-141-1/+25
| | | | llvm-svn: 172383
* asan: add missing fileDmitry Vyukov2013-01-141-0/+128
| | | | llvm-svn: 172381
* asan/tsan: move blocking mutex from asan to sanitizer_commonDmitry Vyukov2013-01-141-0/+1
| | | | llvm-svn: 172380
* asan/tsan: faster memory allocatorDmitry Vyukov2013-01-111-9/+18
| | | | | | replace lists with arrays llvm-svn: 172217
* asan: improve allocator benchmarkDmitry Vyukov2013-01-111-0/+1
| | | | llvm-svn: 172213
* asan: improve the benchmarkDmitry Vyukov2013-01-111-5/+7
| | | | llvm-svn: 172209
* asan/tsan: fix bug in list implementationDmitry Vyukov2013-01-111-0/+17
| | | | llvm-svn: 172187
* [sanitizer] fix the non-cmake build (2-nd attempt)Kostya Serebryany2013-01-101-0/+1
| | | | llvm-svn: 172068
* [sanitizer] fix the non-cmake buildKostya Serebryany2013-01-101-3/+3
| | | | llvm-svn: 172063
* [sanitizer] add standalone_malloc_testKostya Serebryany2013-01-101-0/+59
| | | | llvm-svn: 172061
* [asan] implement more strict checking for memset/etc parameters. Instead of ↵Kostya Serebryany2012-12-281-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 Samsonov2012-12-271-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 Serebryany2012-12-271-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 Vyukov2012-12-252-2/+3
| | | | | | to false positives) llvm-svn: 171057
* [sanitizer] increase the maximum size class of the fast allocator. This ↵Kostya Serebryany2012-12-251-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_allocator2Kostya Serebryany2012-12-241-2/+2
| | | | llvm-svn: 171036
* [sanitizer] make LargeMmapAllocator::GetBlockBegin faster by not using a ↵Kostya Serebryany2012-12-241-6/+15
| | | | | | linked list llvm-svn: 171035
* [sanitizer] rework the size class map in the sanitizer allocator: make the ↵Kostya Serebryany2012-12-241-38/+17
| | | | | | differences between size classes more uniform. llvm-svn: 171031
* [Sanitizer] CMake build rules for unittests: depend on headers when ↵Alexey Samsonov2012-12-211-1/+7
| | | | | | compiling a file with custom clang. llvm-svn: 170897
* [Sanitizer] Don't implicitly add object files to the list of dependencies ↵Alexey Samsonov2012-12-211-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 Samsonov2012-12-201-10/+32
| | | | | | universal static libraries on Mac llvm-svn: 170698
* [Sanitizer] Modify CMake build rules for sanitizer_common unit tests: build ↵Alexey Samsonov2012-12-201-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 allocatorKostya Serebryany2012-12-191-3/+4
| | | | llvm-svn: 170498
* [sanitizer] fix LargeMmapAllocator::GetBlockBeginKostya Serebryany2012-12-181-7/+11
| | | | llvm-svn: 170434
* [sanitizer] fix a bug that has crept into the sanitizer allocator and caused ↵Kostya Serebryany2012-12-151-3/+6
| | | | | | SEGV on allocations between 1Mb and 2Mb, improve the test llvm-svn: 170274
* [Sanitizer] remove extra typenameAlexey Samsonov2012-12-141-1/+1
| | | | llvm-svn: 170208
* [sanitizer] add AllocatorLeakTestKostya Serebryany2012-12-141-0/+31
| | | | llvm-svn: 170206
* tsan: fix lint warningDmitry Vyukov2012-12-141-1/+1
| | | | llvm-svn: 170202
* tsan: disable allocator tests in debug buildDmitry Vyukov2012-12-141-0/+5
| | | | llvm-svn: 170187
* tsan: comment out debug output in testDmitry Vyukov2012-12-141-3/+3
| | | | llvm-svn: 170186
* [sanitizer] change the way SizeClassAllocator64 allocated memory from the ↵Kostya Serebryany2012-12-131-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 interfaceKostya Serebryany2012-12-122-5/+59
| | | | llvm-svn: 169985
* [asan] fix lint, remove debug prints Kostya Serebryany2012-12-071-1/+0
| | | | llvm-svn: 169620
* [sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just ↵Kostya Serebryany2012-12-071-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 Serebryany2012-12-071-1/+1
| | | | | | (conflicts with our own interceptors) llvm-svn: 169595
* [asan/msan] one more test for 32-bit allocator + minor code simplificationKostya Serebryany2012-12-061-7/+19
| | | | llvm-svn: 169507
* [asan/msan] add BulkAllocate to the 32-bit allocator (and a test)Kostya Serebryany2012-12-061-15/+30
| | | | llvm-svn: 169506
* [asan/msan] add GetBlockBegin to the 32-bit allocator (+test) Kostya Serebryany2012-12-061-0/+2
| | | | llvm-svn: 169499
* [asan/msan] one more test for 32-bit allocatorKostya Serebryany2012-12-061-9/+13
| | | | llvm-svn: 169497
* [asan/msan] new 32-bit allocator, basic functionality so farKostya Serebryany2012-12-061-17/+24
| | | | llvm-svn: 169496
* [tsan] add MmapAlignedOrDieKostya Serebryany2012-12-061-0/+15
| | | | llvm-svn: 169474
* [tsan] get rid of *allocator64* files, moving everything to *allocator* ↵Kostya Serebryany2012-12-054-317/+317
| | | | | | files. This will help with the 32-bit allocator implementation and testing llvm-svn: 169368
* [tsan] test the allocator with CompactSizeClassMapKostya Serebryany2012-12-041-5/+15
| | | | llvm-svn: 169270
* [tsan] minor interface refactoringKostya Serebryany2012-12-041-4/+3
| | | | llvm-svn: 169267
* [tsan] refactor the allocator tests to allow testing other flavours of the ↵Kostya Serebryany2012-12-041-18/+35
| | | | | | allocator (add templates) llvm-svn: 169264
OpenPOWER on IntegriCloud