[compiler-rt] r220636 - Fixup deadlock sanitizer after r220635

Alexey Samsonov vonosmas at gmail.com
Sat Oct 25 22:43:17 PDT 2014


Author: samsonov
Date: Sun Oct 26 00:43:17 2014
New Revision: 220636

URL: http://llvm.org/viewvc/llvm-project?rev=220636&view=rev
Log:
Fixup deadlock sanitizer after r220635

Modified:
    compiler-rt/trunk/lib/tsan/dd/dd_rtl.cc

Modified: compiler-rt/trunk/lib/tsan/dd/dd_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/dd/dd_rtl.cc?rev=220636&r1=220635&r2=220636&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/dd/dd_rtl.cc (original)
+++ compiler-rt/trunk/lib/tsan/dd/dd_rtl.cc Sun Oct 26 00:43:17 2014
@@ -19,7 +19,7 @@ namespace __dsan {
 static Context *ctx;
 
 static u32 CurrentStackTrace(Thread *thr, uptr skip) {
-  StackTrace trace;
+  BufferedStackTrace trace;
   thr->ignore_interceptors = true;
   trace.Unwind(1000, 0, 0, 0, 0, 0, false);
   thr->ignore_interceptors = false;
@@ -29,10 +29,9 @@ static u32 CurrentStackTrace(Thread *thr
 }
 
 static void PrintStackTrace(Thread *thr, u32 stk) {
-  uptr size = 0;
-  const uptr *trace = StackDepotGet(stk, &size);
+  StackTrace stack = StackDepotGet(stk);
   thr->ignore_interceptors = true;
-  StackTrace::PrintStack(trace, size);
+  stack.Print();
   thr->ignore_interceptors = false;
 }
 





More information about the llvm-commits mailing list