diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-03-21 07:02:36 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-03-21 07:02:36 +0000 |
commit | a38e40fde45acccb124f7419ecbe21ef6cfd306b (patch) | |
tree | 9e0195c800ee83d0b9bd85488545488c1aa97a22 /lib/tsan/rtl/tsan_rtl_report.cc | |
parent | 4219ea38d733f73c96c8740777ee0bb7061cbe0f (diff) | |
download | compiler-rt-a38e40fde45acccb124f7419ecbe21ef6cfd306b.tar.gz compiler-rt-a38e40fde45acccb124f7419ecbe21ef6cfd306b.tar.bz2 compiler-rt-a38e40fde45acccb124f7419ecbe21ef6cfd306b.tar.xz |
tsan: flush symbolizer cache if not symbolized for more than 5 seconds
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_rtl_report.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_rtl_report.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tsan/rtl/tsan_rtl_report.cc b/lib/tsan/rtl/tsan_rtl_report.cc index b343ff3d..18ab18e0 100644 --- a/lib/tsan/rtl/tsan_rtl_report.cc +++ b/lib/tsan/rtl/tsan_rtl_report.cc @@ -495,6 +495,7 @@ bool OutputReport(Context *ctx, const ScopedReport &srep, const ReportStack *suppress_stack1, const ReportStack *suppress_stack2) { + atomic_store(&ctx->last_symbolize_time_ns, NanoTime(), memory_order_relaxed); const ReportDesc *rep = srep.GetReport(); uptr suppress_pc = IsSuppressed(rep->typ, suppress_stack1); if (suppress_pc == 0) |