diff options
| author | Sergey Matveev <earthdok@google.com> | 2013-10-14 14:04:50 +0000 |
|---|---|---|
| committer | Sergey Matveev <earthdok@google.com> | 2013-10-14 14:04:50 +0000 |
| commit | 43d90cbd86dc8565ed119a2941a29369a214ea37 (patch) | |
| tree | 1218ca7d6b6dca951f0c0dcfb90dfefaf9b71872 /compiler-rt/lib/lsan/lsan_common.h | |
| parent | 7d7768e03289f73dd21a1fa761327f5d184ebfa7 (diff) | |
| download | bcm5719-llvm-43d90cbd86dc8565ed119a2941a29369a214ea37.tar.gz bcm5719-llvm-43d90cbd86dc8565ed119a2941a29369a214ea37.zip | |
[lsan] Support ASan's stack-use-after-return mode in LSan.
Treat the fake stack as live memory.
llvm-svn: 192593
Diffstat (limited to 'compiler-rt/lib/lsan/lsan_common.h')
| -rw-r--r-- | compiler-rt/lib/lsan/lsan_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/lsan/lsan_common.h b/compiler-rt/lib/lsan/lsan_common.h index 971f7486cb3..d490f8bafd9 100644 --- a/compiler-rt/lib/lsan/lsan_common.h +++ b/compiler-rt/lib/lsan/lsan_common.h @@ -135,6 +135,8 @@ void UnlockThreadRegistry(); bool GetThreadRangesLocked(uptr os_id, uptr *stack_begin, uptr *stack_end, uptr *tls_begin, uptr *tls_end, uptr *cache_begin, uptr *cache_end); +void ForEachExtraStackRange(uptr os_id, RangeIteratorCallback callback, + void *arg); // If called from the main thread, updates the main thread's TID in the thread // registry. We need this to handle processes that fork() without a subsequent // exec(), which invalidates the recorded TID. To update it, we must call |

