summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
Commit message (Collapse)AuthorAgeFilesLines
* [Sanitizer] fix CMake buildAlexey Samsonov2012-07-103-2/+3
| | | | llvm-svn: 159988
* [ASan] move flags description to separate header, add comments about them.Alexey Samsonov2012-07-104-47/+102
| | | | llvm-svn: 159985
* [ASan] cleanup: remove dead flagAlexey Samsonov2012-07-092-3/+0
| | | | llvm-svn: 159934
* [ASan] Use common flags parsing machinery.Alexey Samsonov2012-07-0914-228/+210
| | | | llvm-svn: 159933
* [Sanitizer] move flag parsing routines (and unit tests) from tsan runtime to ↵Alexey Samsonov2012-07-095-158/+131
| | | | | | common runtime. llvm-svn: 159928
* Suppress a lint warning.Alexander Potapenko2012-07-081-1/+1
| | | | llvm-svn: 159915
* tsan: Go language support fixesDmitry Vyukov2012-07-064-19/+24
| | | | llvm-svn: 159856
* tsan: Go lang: symbolize stack tracesDmitry Vyukov2012-07-064-4/+63
| | | | llvm-svn: 159827
* [tsan] start using AllocatorCache in CombinedAllocatorKostya Serebryany2012-07-064-14/+33
| | | | llvm-svn: 159825
* Small fix: do not replace the default CFAllocator if it has been replaced ↵Alexander Potapenko2012-07-061-1/+1
| | | | | | already. llvm-svn: 159824
* [tsan] implement SizeClassAllocatorLocalCache (part of tsan allocator)Kostya Serebryany2012-07-062-30/+117
| | | | llvm-svn: 159823
* Because CFAllocatorCreate() should also be called after __CFInitialize() on ↵Alexander Potapenko2012-07-061-16/+26
| | | | | | | | | Lion, do so by factoring the CFAllocator logic into ReplaceCFAllocator(), which is called from either the __CFInitialize wrapper or __asan_init(), depending on which of them is called later. llvm-svn: 159822
* A portable way to check whether __CFInitialize has been called: compare ↵Alexander Potapenko2012-07-063-29/+26
| | | | | | | | kCFAllocatorSystemDefault._base._cfisa to 0. This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 on both Lion and Snow Leopard. llvm-svn: 159821
* Do not check for __CFRuntimeClassTableSize on non-10.6 systems, where this ↵Alexander Potapenko2012-07-063-11/+44
| | | | | | | | symbol is private. This change may cause http://code.google.com/p/address-sanitizer/issues/detail?id=87 to re-appear on Lion. llvm-svn: 159819
* [tsan] use intrusive list in the new tsan allocatorKostya Serebryany2012-07-062-26/+18
| | | | llvm-svn: 159814
* [tsan] add intrusive list to be used in tsan allocator, etcKostya Serebryany2012-07-062-0/+270
| | | | llvm-svn: 159812
* tsan: Go language supportDmitry Vyukov2012-07-0514-42/+362
| | | | llvm-svn: 159754
* Fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 by making ↵Alexander Potapenko2012-07-052-4/+30
| | | | | | sure we replace the default CFAllocator only after __CFInitialize has been called. llvm-svn: 159749
* [ASan] Add a default constructor for DWARFSection to initialize it with zeros.Alexey Samsonov2012-07-051-0/+4
| | | | llvm-svn: 159748
* tsan/asan: kill STLDmitry Vyukov2012-07-051-5/+13
| | | | | | | First, placement new from standard library conflicts with our own. Second, we are in trouble if user uses the same function (we either get instrumented code in runtime, or non-instrumented code in user program). llvm-svn: 159738
* [tsan] reg test for tsan issue #3Kostya Serebryany2012-07-051-0/+13
| | | | llvm-svn: 159737
* [TSan] add a new option 'use_internal_symbolizer' that allows to choose ↵Alexey Samsonov2012-07-055-12/+91
| | | | | | between addr2line-based and llvm-based symbolizer w/o having to rebuild the runtime. This is hopefully a temporary solution that simplifies testing process. In the end, we should leave a single symbolizer. llvm-svn: 159730
* [TSan] Improve output tests: allow reports to contain file:line:column ↵Alexey Samsonov2012-07-043-22/+18
| | | | | | instead of file:line llvm-svn: 159714
* Do not call malloc_zone_from_ptr() for the pointers passed to mz_size() and ↵Alexander Potapenko2012-07-041-14/+0
| | | | | | | | | mz_free(). These callbacks assume that the memory belongs to asan_zone, so it's incorrect to pass it to another one. If a need for this appears (e.g. system libraries free the memory using wrong zone), it should be documented. llvm-svn: 159713
* [ASan] Minor fix in symbolizer output.Alexey Samsonov2012-07-041-1/+1
| | | | llvm-svn: 159709
* [ASan] fixup for r159652Alexey Samsonov2012-07-031-0/+1
| | | | llvm-svn: 159655
* [Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use ↵Alexey Samsonov2012-07-039-75/+280
| | | | | | dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib. llvm-svn: 159652
* [TSan] use threadsafe death tests in TSan unit testsAlexey Samsonov2012-07-022-1/+2
| | | | llvm-svn: 159533
* asan/tsan: improve SpinMutexDmitry Vyukov2012-07-021-3/+17
| | | | llvm-svn: 159518
* tsan/asan: add mutex to 64-bit allocatorDmitry Vyukov2012-07-022-8/+11
| | | | llvm-svn: 159516
* [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, ↵Alexey Samsonov2012-07-023-10/+13
| | | | | | silence/fix some pedantic warnings llvm-svn: 159514
* tsan/asan: third try on msvc atomicsDmitry Vyukov2012-06-292-4/+14
| | | | llvm-svn: 159449
* tsan/asan: second attemp on msvc atomicsDmitry Vyukov2012-06-291-7/+14
| | | | llvm-svn: 159447
* tsan/asan: first try on msvc atomicsDmitry Vyukov2012-06-296-144/+234
| | | | llvm-svn: 159443
* tsan/asan: add SpinMutex to sanitizer_commonDmitry Vyukov2012-06-296-20/+74
| | | | llvm-svn: 159439
* tsan/asan: unify ScopedLockDmitry Vyukov2012-06-294-52/+63
| | | | llvm-svn: 159438
* tsan/asan: unify atomics (move atomics from tsan to sanitizer_common)Dmitry Vyukov2012-06-2913-62/+76
| | | | llvm-svn: 159437
* tsan: use -Wno-unused-private-field only for clang (gcc does not understand it)Dmitry Vyukov2012-06-291-2/+4
| | | | llvm-svn: 159435
* [tsan] added CombinedAllocator for tsanKostya Serebryany2012-06-292-10/+112
| | | | llvm-svn: 159432
* tsan: replace struct copies where clang inserts memcpy() calls with explicit ↵Dmitry Vyukov2012-06-291-5/+6
| | | | | | internal_memcpy() calls llvm-svn: 159431
* tsan: remove own memset/memcpy/memcmp (too messy)Dmitry Vyukov2012-06-293-92/+11
| | | | llvm-svn: 159430
* [asan] fix lintKostya Serebryany2012-06-291-7/+7
| | | | llvm-svn: 159429
* [asan] get rid of libc's sscanf as it causes infinite recursion on Fedora. Kostya Serebryany2012-06-294-24/+48
| | | | llvm-svn: 159424
* [ASan] cmake unit tests: explicitly add necessary linker flags when linking ↵Alexey Samsonov2012-06-291-2/+6
| | | | | | unit tests with asan runtime llvm-svn: 159420
* [ASan] cmake-based unit tests: merge instrumented and non-instrumented files ↵Alexey Samsonov2012-06-291-34/+30
| | | | | | into one test binary llvm-svn: 159419
* tsan: clear shadow for ucontext, because it's visible to userDmitry Vyukov2012-06-281-0/+1
| | | | llvm-svn: 159365
* tsan: fix crashes if signal is caught during thread bootstrap or shutdownDmitry Vyukov2012-06-283-6/+17
| | | | llvm-svn: 159361
* [ASan] fix the build - erase second main as we link all test sources togetherAlexey Samsonov2012-06-281-6/+0
| | | | llvm-svn: 159348
* [ASan] silence various warnings in cmake build of asan unit testsAlexey Samsonov2012-06-283-4/+14
| | | | llvm-svn: 159347
* [ASan] cmake support for running asan unit tests on MacAlexey Samsonov2012-06-282-12/+59
| | | | llvm-svn: 159345
OpenPOWER on IntegriCloud