diff options
Diffstat (limited to 'compiler-rt/lib/msan/msan.cc')
-rw-r--r-- | compiler-rt/lib/msan/msan.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/compiler-rt/lib/msan/msan.cc b/compiler-rt/lib/msan/msan.cc index 1ecbcd44b87..c375afb779e 100644 --- a/compiler-rt/lib/msan/msan.cc +++ b/compiler-rt/lib/msan/msan.cc @@ -301,21 +301,19 @@ u32 ChainOrigin(u32 id, StackTrace *stack) { } // namespace __msan -void __sanitizer::GetStackTrace(BufferedStackTrace *stack, uptr max_s, uptr pc, - uptr bp, void *context, - bool request_fast_unwind) { +void __sanitizer::BufferedStackTrace::UnwindImpl( + uptr pc, uptr bp, void *context, bool request_fast, u32 max_depth) { using namespace __msan; MsanThread *t = GetCurrentThread(); - if (!t || !StackTrace::WillUseFastUnwind(request_fast_unwind)) { + if (!t || !StackTrace::WillUseFastUnwind(request_fast)) { // Block reports from our interceptors during _Unwind_Backtrace. SymbolizerScope sym_scope; - return stack->Unwind(max_s, pc, bp, context, 0, 0, false); + return Unwind(max_depth, pc, bp, context, 0, 0, false); } - if (StackTrace::WillUseFastUnwind(request_fast_unwind)) - stack->Unwind(max_s, pc, bp, nullptr, t->stack_top(), t->stack_bottom(), - true); + if (StackTrace::WillUseFastUnwind(request_fast)) + Unwind(max_depth, pc, bp, nullptr, t->stack_top(), t->stack_bottom(), true); else - stack->Unwind(max_s, pc, 0, context, 0, 0, false); + Unwind(max_depth, pc, 0, context, 0, 0, false); } // Interface. |