From f251e0051c269ac5f60839f5cbce7675ea158ca0 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 5 Jun 2014 23:24:46 +0000 Subject: [PATCH] [TSan] Reduce the stack frame size of ReportDeadlock llvm-svn: 210301 --- compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc index bbee573..6ab695d 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 stacks(2 * DDReport::kMaxLoopSize); uptr dummy_pc = 0x42; for (int i = 0; i < r->n; i++) { uptr size; -- 2.7.4