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 | 99116e544d39c0692f5a3d3494bb6788950a4ee9 (patch) | |
tree | 426d8adb295b1c87d262bff3c16e67abdb1bfdc7 /lib/tsan/rtl/tsan_rtl_mutex.cc | |
parent | a784e0651be6324138f7a3ecb6cc30fafc21b644 (diff) |
[TSan] Reduce the stack frame size of ReportDeadlock
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_rtl_mutex.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_rtl_mutex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/rtl/tsan_rtl_mutex.cc b/lib/tsan/rtl/tsan_rtl_mutex.cc index bbee57350..6ab695d5c 100644 --- a/lib/tsan/rtl/tsan_rtl_mutex.cc +++ b/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; |