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
|
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
|
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
|
bb12f840b5
|
[lsan] Ensure lsan is initialized when interceptors are called.
Also remove unnecessary ifdefs.
llvm-svn: 182571
|
2013-05-23 10:24:44 +00:00 |
Sergey Matveev
|
20ccf95f80
|
[lsan] Invoke leak detection with atexit().
Keeps it consistent between ASan and LSan.
llvm-svn: 182399
|
2013-05-21 17:56:45 +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
|
866abfb3fe
|
[lsan] Allocator for standalone LSan.
This is the first in a series of CLs implementing LeakSanitizer.
http://clang.llvm.org/docs/LeakSanitizer.html
llvm-svn: 182245
|
2013-05-20 10:54:00 +00:00 |