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
|
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 |
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 |
Evgeniy Stepanov
|
5697b58ec4
|
[sanitizer] Move GetTlsSize code from TSan to sanitizer_common.
llvm-svn: 176938
|
2013-03-13 08:19:53 +00:00 |
Alexey Samsonov
|
06d3aa4884
|
[Sanitizer] Change MemoryMappingLayout methods to also report memory protection flags (for future use in leak checker). Patch by Sergey Matveev.
llvm-svn: 176931
|
2013-03-13 06:51:02 +00:00 |
Alexey Samsonov
|
85f0a7e644
|
[TSan] Add interceptor for malloc_usable_size()
llvm-svn: 176013
|
2013-02-25 08:43:10 +00:00 |
Evgeniy Stepanov
|
ea61d08185
|
[sanitizer] Add interceptors for localtime and friends.
llvm-svn: 175499
|
2013-02-19 09:19:16 +00:00 |
Kostya Serebryany
|
3e62fe8c23
|
[tsan] use our own GetEnv instead of libc's getenv
llvm-svn: 175498
|
2013-02-19 08:19:13 +00:00 |
Dmitry Vyukov
|
965a10e07c
|
tsan: fix bug in suppression reading (suppressions from file were discarded)
llvm-svn: 175153
|
2013-02-14 11:03:45 +00:00 |
Dmitry Vyukov
|
3c2489e2c3
|
tsan: do not imitate memory write on malloc() (Go)
better memory range access functions (put only 1 event to trace) (Go)
llvm-svn: 175056
|
2013-02-13 13:05:36 +00:00 |
Evgeniy Stepanov
|
d8cfb99a71
|
[sanitizer] Missing changes from r174960.
llvm-svn: 174962
|
2013-02-12 12:02:49 +00:00 |
Dmitry Vyukov
|
e679798315
|
tsan: fix suppress_java logic
llvm-svn: 174635
|
2013-02-07 17:12:28 +00:00 |