[PATCH] D19148: Always inlining PrintCurrentStackSlow of tsan library to fix tail-call issue

Chuang-Yu Cheng via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 22:13:17 PDT 2016


cycheng added a comment.

This patch replace http://reviews.llvm.org/D19001.

I have bootstrap tested the patch on x86 and ppc64. The result as expectation.

On PPC64:

  Program stack trace:
  #0 0x100cec8c __sanitizer::BufferedStackTrace::SlowUnwindStack
  #1 0x100ca86c __sanitizer::BufferedStackTrace::Unwind
  #2 0x100a5358 __sanitizer_print_stack_trace
  #3 0x100d542c FooBarBaz()
  #4 0x100d53c4 main
  
  target pc = 0x100a5308 (by GetCurrentPc)

On X86:

  Program stack trace:
  #0 0x494693 __sanitizer::BufferedStackTrace::SlowUnwindStack
  #1 0x478ff9 __sanitizer_print_stack_trace
  #3 0x49b222 FooBarBaz()
  #4 0x49b1fd main
  #5 0x7fa265caea40 __libc_start_main
  #6 0x41a2f9 _start
  
  target pc = 0x478f9c (by GetCurrentPc)


http://reviews.llvm.org/D19148





More information about the llvm-commits mailing list