[ASan] Speed up stack trace unwinding for stacks of size 2.
commit1f5d9ca9ff46ab51b1f0567f1722fed810af0e6c
authorAlexey Samsonov <samsonov@google.com>
Tue, 4 Mar 2014 13:12:25 +0000 (4 13:12 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 4 Mar 2014 13:12:25 +0000 (4 13:12 +0000)
tree5154a3a9d80667dbc3e840be25192db30e3bfc90
parentcf0d108fb5eabb382662c583787c609adbf3ac0f
[ASan] Speed up stack trace unwinding for stacks of size 2.

Summary:
We don't need to do any work in this case - just take
the current PC and caller PC.

Reviewers: eugenis, ygribov

Reviewed By: eugenis

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2936

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202845 91177308-0d34-0410-b5e6-96231b3b80d8
lib/asan/asan_allocator2.cc
lib/asan/asan_linux.cc
lib/asan/asan_stack.h
lib/asan/asan_thread.h
test/asan/TestCases/malloc_context_size.cc