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 |
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 |
Kostya Serebryany
|
01a32bdef1
|
[tsan] enable tsan-vs-gvn test since it is now fixed
llvm-svn: 176079
|
2013-02-26 08:18:27 +00:00 |
Alexey Samsonov
|
85f0a7e644
|
[TSan] Add interceptor for malloc_usable_size()
llvm-svn: 176013
|
2013-02-25 08:43:10 +00:00 |
Alexey Samsonov
|
10bccda948
|
[TSan] remove temporary build directory in 'make clean' command
llvm-svn: 176012
|
2013-02-25 08:32:02 +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 |
Kostya Serebryany
|
aa7f2b5aa6
|
[tsan] disable a failing test until it gets fixed. fix lint
llvm-svn: 175137
|
2013-02-14 06:54:51 +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 |
Kostya Serebryany
|
4681fbf002
|
[tsan] simplify tsan-vs-gvn test since gvn vs tsan is now fixed; fix lint
llvm-svn: 175037
|
2013-02-13 06:07:50 +00:00 |
Evgeniy Stepanov
|
d8cfb99a71
|
[sanitizer] Missing changes from r174960.
llvm-svn: 174962
|
2013-02-12 12:02:49 +00:00 |
Kostya Serebryany
|
53e37ef74f
|
[tsan] added tsan-vs-gvn test
llvm-svn: 174875
|
2013-02-11 11:28:03 +00:00 |
Dmitry Vyukov
|
e679798315
|
tsan: fix suppress_java logic
llvm-svn: 174635
|
2013-02-07 17:12:28 +00:00 |
Dmitry Vyukov
|
effd98b0f4
|
tsan: intercept libc __res_iclose
this is required to catch close of file descriptors created in getaddrinfo()
llvm-svn: 174624
|
2013-02-07 15:27:45 +00:00 |
Dmitry Vyukov
|
e94f4c048e
|
tsan: fix Go build
llvm-svn: 174622
|
2013-02-07 15:26:55 +00:00 |
Kostya Serebryany
|
df2f0bff37
|
[tsan] race_on_write test
llvm-svn: 174599
|
2013-02-07 09:48:17 +00:00 |
Alexey Samsonov
|
85cc9b655d
|
[TSan] skip multiple internal frames, if necessary
llvm-svn: 174516
|
2013-02-06 16:28:05 +00:00 |
Kostya Serebryany
|
21bedab7a1
|
[tsan] improve FrameIsInternal
llvm-svn: 174506
|
2013-02-06 14:32:16 +00:00 |
Kostya Serebryany
|
4fb340d972
|
[tsan] print error summary line
llvm-svn: 174505
|
2013-02-06 14:24:00 +00:00 |
Alexander Potapenko
|
34157fc33f
|
[ASan] Delete the code related to static runtime on OS X.
Nuke lib/interception/mach_override.
llvm-svn: 174383
|
2013-02-05 15:57:12 +00:00 |
Alexey Samsonov
|
2c5cbd2b38
|
[Sanitizer] extend internal libc with stat/fstat/lstat functions
llvm-svn: 174316
|
2013-02-04 10:16:50 +00:00 |
Dmitry Vyukov
|
606de60163
|
tsan: intercept bind/listen
llvm-svn: 174311
|
2013-02-04 08:06:32 +00:00 |
Alexey Samsonov
|
39313b780d
|
[Sanitizer] make internal_open have the same interface as libc version
llvm-svn: 174187
|
2013-02-01 15:58:46 +00:00 |
Dmitry Vyukov
|
1fab680c1b
|
tsan: catch races on fd in more cases
llvm-svn: 174184
|
2013-02-01 15:52:35 +00:00 |
Alexey Samsonov
|
84cf6a4333
|
[TSan] remove artifacts from gotsan build in 'make clean' command
llvm-svn: 174180
|
2013-02-01 15:30:36 +00:00 |
Dmitry Vyukov
|
87c6bb9716
|
tsan: even if races between atomic and plain memory accesses are turned off (report_atomic_races=0),
still report races between atomic accesses and free().
llvm-svn: 174175
|
2013-02-01 14:41:58 +00:00 |