History log of /external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1f3c2fee395abc36230c445e9ebdba55c4729d35 29-May-2013 Alexey Samsonov <samsonov@google.com> Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching to a custom allocator.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
03049413f8978c202a254eb0acfa2f10b9bbe34a 24-Apr-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix crash when data race happens on out-of-bounds accesses.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
7423c7821ff30043def78c6cbb257bd2f4d9eef6 22-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: return 0 on malloc() failure instead of crashing



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177741 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
f51c3860ce0a1ae81d0dc9da27db0693718db18e 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: smaller memory block headers (32b->16b)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177312 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
3ce21701b4e1026a4f5157ff9771c533f4e3ef55 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add support for idle threads



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
7ac33ac529ff93a57419f5ddf71b1fde68428577 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: mark shadow for thread stack as "don't need" when thread exits



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177288 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
e93e5057023de89f1bad5de609efac39efc5da73 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: move implementation out of h file


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177269 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
2bbd8bec77c2fdb41c5f5b6cb0d83d22bc576650 15-Mar-2013 Alexey Samsonov <samsonov@google.com> [TSan] Switch TSan runtime to use ThreadRegistry class from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177154 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
8a6b5e551ab8a331f7e7bc4bfcd74926fbffa3f6 25-Feb-2013 Alexey Samsonov <samsonov@google.com> [TSan] Add interceptor for malloc_usable_size()

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
1acfa02e08e6d3316c80f52255cbb7d9e3164128 24-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: return the old fake numbers from malloc stats (some code already depends on them)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173348 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
bdd844cb41718c27ef727a99a236191bc29a3df8 24-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: implement malloc stats querying


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173332 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
12530820a4d45e799cdbb83e7b3b1e8ef111650c 23-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add stubs for malloc introspection (similar to what we have in asan)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
fb917e9069ea44f7103f50c658be84a8f66de56c 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: describe stack and TLS addresses


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
f17b3822b22751f09549ab563cc5ca61d072b2e8 09-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix crash when user defines own fopen/fileno


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
491d34b7b75c42ac746ce90cda5a124bda038383 25-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix the code that searches for heap memory block metadata
(the old code won't work with new allocator)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
ad9da372f962495b3487685232d09390be841b1c 06-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add mutexsets to reports
With this change reports say what mutexes the threads hold around the racy memory accesses.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169493 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
158c6ac3bb46753db217f9c2c73485811a3a1890 05-Oct-2012 Dmitry Vyukov <dvyukov@google.com> tsan: cache pc's that cause suppressions (this way we do not need to symbolize the reports)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
4f0ea398bdc99a4a32402057c23bbcc6d19a8eb4 24-Sep-2012 Alexey Samsonov <samsonov@google.com> [TSan] Provide replacements for operators new/delete instead of declaring extern C functions with weirdly mangled names (same strategy is used in ASan).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164487 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
848531192777acecf79747dc7c1ffeedf5c1da9f 31-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add "as if synchronized via sleep" feature


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
ff35f1d82b4f145b3477ef27a7a2e7b63c486988 30-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: use stack depot to describe heap blocks


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162902 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
9bbc579e11900741551b81b5e91d22ca47d70b26 15-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: store sync objects in memory block headers + delete them when the block is freed


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161959 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
2e87051d136db3150a3ca322d8862f92b0a684bb 15-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: switch to new allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
bf3471043da3a9af36a801c7ad54dc93d4d427cd 25-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: remove internal allocator, switch to sanitizer_common one.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159141 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
9ad7c32720dfa1287f8cfd481e5d583435178cae 22-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: do not call malloc/free in memory access handling routine.
This improves signal-/fork-safety of instrumented programs.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158988 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
f7667cc84cdd8923c0b6c7cfc92b7bd5692ce18c 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move internal_strdup and internal_memcpy to common runtime. Make internal allocations from TSan runtime call InternalAlloc from common runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
e954101f6602ac181a2c3accfbbad0ae51b0bf7c 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
67a64dd8259fdbd867633b27f54d584f435f1ce6 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [TSan] run some renaming as a preparation for factoring out Printf implementation.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
603c4be006d8c53905d736bf1f19a49f5ce98276 04-Jun-2012 Alexey Samsonov <samsonov@google.com> Remove file-type tags in .cc files in tsan/ and sanitizer_common/

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157928 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
efd958213d70188ae6f79afd79fe2c84956d24ff 21-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add more checks for OOM conditions
tests like to try to malloc((size_t)-1)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157176 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
7b8bee18f2f2c752bca3656b6092610b6cc9b503 18-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: check for overflow in malloc()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157048 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
b7b6b1cd9df0c954b1f890fcebf373db984923b3 17-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: remove shutdown code
tsan runtime shutdown is problematic for 2 reasons:
1. others crash during shutdown
2. we have to override user exit status (don't know it and can't return from atexit handler)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
f5820e74ad31eb8352049c880f8d58e286a9b713 14-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: enabled report suppression for signal-unsafe reports


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156765 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc
7ac41484ea322e0ea5774df681660269f5dc321e 10-May-2012 Kostya Serebryany <kcc@google.com> [tsan] First commit of ThreadSanitizer (TSan) run-time library.

Algorithm description: http://code.google.com/p/thread-sanitizer/wiki/ThreadSanitizerAlgorithm

Status:
The tool is known to work on large real-life applications, but still has quite a few rough edges.
Nothing is guaranteed yet.

The tool works on x86_64 Linux.
Support for 64-bit MacOS 10.7+ is planned for late 2012.
Support for 32-bit OSes is doable, but problematic and not yet planed.

Further commits coming:
- tests
- makefiles
- documentation
- clang driver patch

The code was previously developed at http://code.google.com/p/data-race-test/source/browse/trunk/v2/
by Dmitry Vyukov and Kostya Serebryany with contributions from
Timur Iskhodzhanov, Alexander Potapenko, Alexey Samsonov and Evgeniy Stepanov.




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156542 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_mman.cc