[compiler-rt] r195957 - Increase the LocatePcInTrace PC threshold now that GET_STACK_TRACE_WITH_PC_AND_BP has grown

Timur Iskhodzhanov timurrrr at google.com
Fri Nov 29 05:15:25 PST 2013


Author: timurrrr
Date: Fri Nov 29 07:15:25 2013
New Revision: 195957

URL: http://llvm.org/viewvc/llvm-project?rev=195957&view=rev
Log:
Increase the LocatePcInTrace PC threshold now that GET_STACK_TRACE_WITH_PC_AND_BP has grown

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc?rev=195957&r1=195956&r2=195957&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc Fri Nov 29 07:15:25 2013
@@ -161,7 +161,7 @@ static bool MatchPc(uptr cur_pc, uptr tr
 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 = 96;
+  const int kPcThreshold = 192;
   for (uptr i = 0; i < size; ++i) {
     if (MatchPc(pc, trace[i], kPcThreshold))
       return i;





More information about the llvm-commits mailing list