Sergey Matveev
|
4e0215a71c
|
Revert to C-style callbacks for iteration over allocator chunks.
Also clean up LSan code, fix some comments and replace void* with uptr
to bring down the number of reinterpret_casts.
llvm-svn: 184700
|
2013-06-24 08:34:50 +00:00 |
Sergey Matveev
|
38fa1ff710
|
[lsan] Try REALLY hard to fix Win build.
llvm-svn: 184557
|
2013-06-21 15:50:49 +00:00 |
Sergey Matveev
|
85f1fffdfb
|
[lsan] This time really fix Win build.
llvm-svn: 184556
|
2013-06-21 15:22:12 +00:00 |
Sergey Matveev
|
7ed5c687ed
|
[lsan] Fix win build.
llvm-svn: 184555
|
2013-06-21 15:14:57 +00:00 |
Sergey Matveev
|
d28c03c03a
|
[lsan] Increase allocator space; minor fixes.
llvm-svn: 184554
|
2013-06-21 15:10:20 +00:00 |
Sergey Matveev
|
b94d5e2d1c
|
[asan] Move lsan_disabled out of thread context.
Fix for the case where disabler is used in pthread key destructor.
llvm-svn: 184553
|
2013-06-21 14:51:52 +00:00 |
Sergey Matveev
|
5e6b9eccce
|
[asan] Define LSan annotations as no-ops if leak detection is not supported.
llvm-svn: 184422
|
2013-06-20 13:39:42 +00:00 |
Sergey Matveev
|
dac35c24c0
|
[lsan] Move symbolization and reporting out of StopTheWorld callback.
llvm-svn: 184303
|
2013-06-19 14:04:11 +00:00 |
Alexey Samsonov
|
bd0428b81a
|
[LSan] Use a typedef for frontier vector
llvm-svn: 183973
|
2013-06-14 10:07:56 +00:00 |
Alexey Samsonov
|
b0d92b3312
|
[Sanitizer] Rename InternalVector to InternalMmapVector
llvm-svn: 183972
|
2013-06-14 09:59:40 +00:00 |
Sergey Matveev
|
978460c12c
|
[lsan] Harmonized some naming inconsistencies.
llvm-svn: 183748
|
2013-06-11 15:26:20 +00:00 |
Sergey Matveev
|
1c4e214c32
|
[lsan] Put SANITIZER_INTERFACE_ATTRIBUTE on LSan interface functions.
llvm-svn: 183429
|
2013-06-06 18:40:55 +00:00 |
Sergey Matveev
|
ecc4f5ba8e
|
[lsan] Implement __lsan_ignore_object().
Leak annotation similar to HeapChecker's IgnoreObject().
llvm-svn: 183412
|
2013-06-06 14:17:56 +00:00 |
Sergey Matveev
|
17ee1abfa7
|
[lsan] Add __lsan_disable() and __lsan_enable().
Objects allocated after a call to __lsan_disable() will be treated as
live memory. Also add a ScopedDisabler.
llvm-svn: 183099
|
2013-06-03 11:21:34 +00:00 |
Sergey Matveev
|
69f11803ec
|
[lsan] Use the fast version of GetBlockBegin for leak checking in LSan and ASan.
llvm-svn: 182994
|
2013-05-31 11:13:45 +00:00 |
Sergey Matveev
|
39e8a6d87e
|
[lsan] Begin converting LSan tests to output tests.
In this CL all old tests are removed and one LIT test is added.
llvm-svn: 182730
|
2013-05-27 11:41:46 +00:00 |
Sergey Matveev
|
e45a0677a6
|
[lsan] Allow the ignored TLS range to be empty.
llvm-svn: 182657
|
2013-05-24 18:07:53 +00:00 |
Sergey Matveev
|
37dff38495
|
[lsan] Minor adjustments to LSan messages.
llvm-svn: 182648
|
2013-05-24 15:36:30 +00:00 |
Sergey Matveev
|
c7715a228a
|
[lsan] Prettify LSan reports and add a summary.
llvm-svn: 182646
|
2013-05-24 14:49:13 +00:00 |
Sergey Matveev
|
bc880f3a54
|
[lsan] Add exitcode flag. Kill the process if leaks are found.
llvm-svn: 182641
|
2013-05-24 13:16:02 +00:00 |
Sergey Matveev
|
17f5705d3c
|
[asan] Do not invoke LSan hooks unless CAN_SANITIZE_LEAKS.
llvm-svn: 182389
|
2013-05-21 15:35:34 +00:00 |
Sergey Matveev
|
620744556a
|
[lsan] Change CMakeLists to build the common LSan module for ASan.
Also, define CAN_SANITIZE_LEAKS.
llvm-svn: 182383
|
2013-05-21 14:12:11 +00:00 |
Sergey Matveev
|
bcfd838bcb
|
[lsan] GetUserBegin() in LSan.
Separate the notions of user-visible chunk and allocator chunk, to facilitate
ASan integration.
llvm-svn: 182256
|
2013-05-20 13:08:23 +00:00 |
Sergey Matveev
|
b5483be858
|
[lsan] Common leak checking module.
Leak checking functionality which will be shared between
LSan/ASan/MSan.
llvm-svn: 182249
|
2013-05-20 11:06:50 +00:00 |