Dmitry Vyukov
|
9af68719ed
|
tsan: return 0 on malloc() failure instead of crashing
llvm-svn: 177741
|
2013-03-22 17:06:22 +00:00 |
Dmitry Vyukov
|
3bd5ffb62b
|
tsan: test that tsan explicitly says "race on vptr".
Requires llvm r177717.
llvm-svn: 177726
|
2013-03-22 10:54:39 +00:00 |
Dmitry Vyukov
|
2f411641fe
|
tsan: work around FileCheck bug with empty outputs
llvm-svn: 177715
|
2013-03-22 08:48:34 +00:00 |
Dmitry Vyukov
|
ebf63d0095
|
tsan: better reporting of thread leaks
1. do not report running threads as leaks
2. aggregate leaked threads by creation stack
llvm-svn: 177647
|
2013-03-21 16:55:17 +00:00 |
Dmitry Vyukov
|
0851fa8819
|
tsan: better reporting for races on vptr
explicitly say "ctor/dtor vs virtual call"
llvm-svn: 177640
|
2013-03-21 15:37:39 +00:00 |
Dmitry Vyukov
|
2c3b919ad3
|
tsan: add flag to control symbolizer flush frequency
llvm-svn: 177638
|
2013-03-21 13:01:50 +00:00 |
Dmitry Vyukov
|
69c323d66f
|
tsan: intercept abort() to fflush() libc streams
llvm-svn: 177637
|
2013-03-21 12:50:43 +00:00 |
Dmitry Vyukov
|
6911a7f1d1
|
tsan: remove bogus CHECK
Asynchronous signal (e.g. SIGABRT) can be received with any value of in_rtl.
llvm-svn: 177636
|
2013-03-21 12:44:44 +00:00 |
Dmitry Vyukov
|
48e5d4a2d3
|
tsan: flush symbolizer cache if not symbolized for more than 5 seconds
llvm-svn: 177629
|
2013-03-21 07:02:36 +00:00 |
Dmitry Vyukov
|
5e797a8e57
|
tsan: add a comment about magic numbers
llvm-svn: 177628
|
2013-03-21 06:28:04 +00:00 |
Dmitry Vyukov
|
78693730a4
|
tsan: use a single background thread for memory profiler and memory flush (and later for symbolizer flush)
llvm-svn: 177627
|
2013-03-21 06:24:31 +00:00 |
Dmitry Vyukov
|
6120bac6e6
|
tsan: correct sizes of signal-related data structures
llvm-svn: 177526
|
2013-03-20 14:57:28 +00:00 |
Dmitry Vyukov
|
9f94dff7a6
|
tsan: add missing stat descriptions
llvm-svn: 177523
|
2013-03-20 14:04:23 +00:00 |
Dmitry Vyukov
|
0954e9c01d
|
tsan: call fflush(0) on exit again
llvm-svn: 177522
|
2013-03-20 14:01:10 +00:00 |
Dmitry Vyukov
|
c638a7127e
|
tsan: reduce size of mutexsets from 64 to 16 mutexes
overflow is handled anyway
saves memory because each thread holds 1024 mutexsets
llvm-svn: 177520
|
2013-03-20 13:50:47 +00:00 |
Dmitry Vyukov
|
3330200d92
|
tsan: fix incorrect test
llvm-svn: 177519
|
2013-03-20 13:49:45 +00:00 |
Dmitry Vyukov
|
b62c158d81
|
tsan: special handling of .rodata (don't try to find races, don't keep shadow, dont' put into traces)
llvm-svn: 177517
|
2013-03-20 13:21:50 +00:00 |
Dmitry Vyukov
|
ccbdea956f
|
tsan: fix build
llvm-svn: 177513
|
2013-03-20 11:22:03 +00:00 |
Dmitry Vyukov
|
79915de6af
|
tsan: move trace header into 0x600000000000 range
eliminat thread "dead info" altogether
llvm-svn: 177512
|
2013-03-20 10:31:53 +00:00 |
Dmitry Vyukov
|
b7c68ee856
|
tsan: fix flaky test
llvm-svn: 177500
|
2013-03-20 09:22:13 +00:00 |
Dmitry Vyukov
|
f6c4a7a2f5
|
tsan: fix incorrect test
llvm-svn: 177499
|
2013-03-20 09:21:49 +00:00 |
Evgeniy Stepanov
|
95eaa21637
|
[sanitizer] More renamed macros.
llvm-svn: 177401
|
2013-03-19 14:54:17 +00:00 |
Evgeniy Stepanov
|
0af672326a
|
[sanitizer] Replace more platform checks with SANITIZER_ constants.
llvm-svn: 177400
|
2013-03-19 14:33:38 +00:00 |
Dmitry Vyukov
|
4ecfa696e0
|
tsan: flush dead thread info earlier (when another thread is finished rather than new thread is created)
llvm-svn: 177394
|
2013-03-19 12:25:48 +00:00 |
Dmitry Vyukov
|
9dd06ad47a
|
tsan: instruct malloc() to consume less memory
llvm-svn: 177393
|
2013-03-19 12:24:19 +00:00 |
Dmitry Vyukov
|
f3fde82667
|
tsan: symbolizer "flush caches" support
llvm-svn: 177389
|
2013-03-19 10:24:01 +00:00 |
Dmitry Vyukov
|
509dab30ae
|
tsan: fix memory leak
llvm-svn: 177387
|
2013-03-19 10:22:33 +00:00 |
Evgeniy Stepanov
|
b4a218db34
|
[sanitizer] Don't adjust the size of the user-allocated stack.
Moved this code to sanitizer_common.
llvm-svn: 177383
|
2013-03-19 09:30:52 +00:00 |
Dmitry Vyukov
|
b59fa875ad
|
tsan: do not allocate sync vars on relaxed atomic operations
helps to reduce memory consumption if an atomic is used only with relaxed ops (stats)
llvm-svn: 177381
|
2013-03-19 09:15:31 +00:00 |
Dmitry Vyukov
|
4ddd37ba5b
|
tsan: smaller memory block headers (32b->16b)
llvm-svn: 177312
|
2013-03-18 19:47:36 +00:00 |
Dmitry Vyukov
|
61ce9560d4
|
tsan: add support for idle threads
llvm-svn: 177292
|
2013-03-18 17:21:15 +00:00 |
Dmitry Vyukov
|
ce26a0aa92
|
tsan: touch less shadow memory during operations on big memory ranges
greatly reduces memory consumption
llvm-svn: 177289
|
2013-03-18 16:56:48 +00:00 |
Dmitry Vyukov
|
2e7f29f042
|
tsan: mark shadow for thread stack as "don't need" when thread exits
llvm-svn: 177288
|
2013-03-18 15:49:07 +00:00 |
Dmitry Vyukov
|
f123337275
|
tsan: better memory profiler
llvm-svn: 177286
|
2013-03-18 13:55:33 +00:00 |
Dmitry Vyukov
|
15bee188c4
|
tsan: madvise(DONTNEED) shadow memory on munmap()
llvm-svn: 177278
|
2013-03-18 11:51:51 +00:00 |
Dmitry Vyukov
|
20bf8c7778
|
tsan: move implementation out of h file
llvm-svn: 177269
|
2013-03-18 10:32:21 +00:00 |
Dmitry Vyukov
|
49e462fab2
|
tsan: fix clang -Wall build
Clang does not like classes with virtual functions but w/o virtual dtor.
Go does not like libstdc++ (operator delete).
llvm-svn: 177267
|
2013-03-18 10:10:15 +00:00 |
Alexey Samsonov
|
b5d10f69e4
|
[TSan] re-apply r177249 lost in edits
llvm-svn: 177265
|
2013-03-18 09:45:22 +00:00 |
Dmitry Vyukov
|
a1bdd2d942
|
tsan: fix memory leak
llvm-svn: 177262
|
2013-03-18 09:09:41 +00:00 |
Dmitry Vyukov
|
7cd2025c4d
|
tsan: use StackDepot for thread creation stacks
llvm-svn: 177261
|
2013-03-18 09:02:27 +00:00 |
Dmitry Vyukov
|
50160030e1
|
tsan: fix Go build
llvm-svn: 177260
|
2013-03-18 08:52:46 +00:00 |
Dmitry Vyukov
|
a221620b2e
|
tsan: use StackDepot in sync object to store creation stacks
llvm-svn: 177258
|
2013-03-18 08:27:47 +00:00 |
Alexey Samsonov
|
cbed82ea70
|
[TSan] fix undefined variable in debug TSan build
llvm-svn: 177249
|
2013-03-18 07:33:00 +00:00 |
Alexey Samsonov
|
4f1c8a13d5
|
[TSan] Use ThreadRegistry::FindThreadContextLocked() to find thread by its stack/tls address.
llvm-svn: 177248
|
2013-03-18 07:02:08 +00:00 |
Alexey Samsonov
|
e1955b851d
|
[TSan] Makefiles: allow configurable paths to clang and FileCheck. Add -fno-rtti flag.
llvm-svn: 177247
|
2013-03-18 07:00:36 +00:00 |
Alexey Samsonov
|
9aecdfe34d
|
[TSan] Switch TSan runtime to use ThreadRegistry class from sanitizer_common
llvm-svn: 177154
|
2013-03-15 13:48:44 +00:00 |
Evgeniy Stepanov
|
231894a902
|
[sanitizer] Intercept frexp and friends.
llvm-svn: 177056
|
2013-03-14 11:34:39 +00:00 |
Alexey Samsonov
|
41a560b8cd
|
[TSan] Add missing header inclusion
llvm-svn: 177013
|
2013-03-14 07:13:00 +00:00 |
Alexey Samsonov
|
109ddd0fe4
|
[TSan] Use __sanitizer_pthread_attr_t in TSan
llvm-svn: 177012
|
2013-03-14 07:10:52 +00:00 |
Alexey Samsonov
|
d7ab381f53
|
[Sanitizer] Build ASan, TSan and MSan runtimes with -fno-rtti.
llvm-svn: 176940
|
2013-03-13 09:18:30 +00:00 |