diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-06-05 23:24:46 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-06-05 23:24:46 +0000 |
commit | f251e0051c269ac5f60839f5cbce7675ea158ca0 (patch) | |
tree | 5df8b8c5cbe4a12b1ba57b37e8ede13062c3d4a9 | |
parent | 6c0ddfe9a6087c497d4b62b365d766325baebc49 (diff) | |
download | bcm5719-llvm-f251e0051c269ac5f60839f5cbce7675ea158ca0.tar.gz bcm5719-llvm-f251e0051c269ac5f60839f5cbce7675ea158ca0.zip |
[TSan] Reduce the stack frame size of ReportDeadlock
llvm-svn: 210301
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc index bbee57350ee..6ab695d5ca9 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc @@ -467,7 +467,7 @@ void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) { 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; |