[compiler-rt] r210301 - [TSan] Reduce the stack frame size of ReportDeadlock
Alexey Samsonov
vonosmas at gmail.com
Thu Jun 5 16:24:46 PDT 2014
Author: samsonov
Date: Thu Jun 5 18:24:46 2014
New Revision: 210301
URL: http://llvm.org/viewvc/llvm-project?rev=210301&view=rev
Log:
[TSan] Reduce the stack frame size of ReportDeadlock
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc?rev=210301&r1=210300&r2=210301&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_mutex.cc Thu Jun 5 18:24:46 2014
@@ -467,7 +467,7 @@ void ReportDeadlock(ThreadState *thr, up
rep.AddUniqueTid((int)r->loop[i].thr_ctx);
rep.AddThread((int)r->loop[i].thr_ctx);
}
- StackTrace stacks[2 * DDReport::kMaxLoopSize];
+ InternalScopedBuffer<StackTrace> stacks(2 * DDReport::kMaxLoopSize);
uptr dummy_pc = 0x42;
for (int i = 0; i < r->n; i++) {
uptr size;
More information about the llvm-commits
mailing list