diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-03-04 14:06:11 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-03-04 14:06:11 +0000 |
| commit | 359c105c927a6ed1213f047a353eb391af4aff48 (patch) | |
| tree | e3f291a3216c9a7948fb103831fb83ffad73a7ef /compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc | |
| parent | d920770addd99f7cdc8c6e0f817ca807ea932ba1 (diff) | |
| download | bcm5719-llvm-359c105c927a6ed1213f047a353eb391af4aff48.tar.gz bcm5719-llvm-359c105c927a6ed1213f047a353eb391af4aff48.zip | |
Fix StackTrace::LocatePcInTrace, add more unit tests for generic StackTrace
llvm-svn: 202849
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc index df147573747..85c6fd59162 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc @@ -72,7 +72,7 @@ void StackTrace::PopStackFrames(uptr count) { uptr StackTrace::LocatePcInTrace(uptr pc) { // Use threshold to find PC in stack trace, as PC we want to unwind from may // slightly differ from return address in the actual unwinded stack trace. - const int kPcThreshold = 192; + const int kPcThreshold = 256; for (uptr i = 0; i < size; ++i) { if (MatchPc(pc, trace[i], kPcThreshold)) return i; |

