[compiler-rt] r177389 - tsan: symbolizer "flush caches" support
Dmitry Vyukov
dvyukov at google.com
Tue Mar 19 03:24:01 PDT 2013
Author: dvyukov
Date: Tue Mar 19 05:24:01 2013
New Revision: 177389
URL: http://llvm.org/viewvc/llvm-project?rev=177389&view=rev
Log:
tsan: symbolizer "flush caches" support
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.cc?rev=177389&r1=177388&r2=177389&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.cc Tue Mar 19 05:24:01 2013
@@ -116,4 +116,11 @@ ReportLocation *SymbolizeData(uptr addr)
return ent;
}
+void SymbolizeFlush() {
+ if (!IsSymbolizerAvailable())
+ return;
+ ScopedInSymbolizer in_symbolizer;
+ __sanitizer::FlushSymbolizer();
+}
+
} // namespace __tsan
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.h?rev=177389&r1=177388&r2=177389&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_symbolize.h Tue Mar 19 05:24:01 2013
@@ -20,6 +20,7 @@ namespace __tsan {
ReportStack *SymbolizeCode(uptr addr);
ReportLocation *SymbolizeData(uptr addr);
+void SymbolizeFlush();
ReportStack *SymbolizeCodeAddr2Line(uptr addr);
More information about the llvm-commits
mailing list