[asan] Initialize fake stack during thread init
authorWalter Lee <waltl@google.com>
Thu, 10 May 2018 20:09:03 +0000 (20:09 +0000)
committerWalter Lee <waltl@google.com>
Thu, 10 May 2018 20:09:03 +0000 (20:09 +0000)
commit3bde9622555f685e8d8d25c71133093c7ab9ce48
tree0e65501db22c986a6897851250dca82f52d75b8b
parentc7bb14301acddcfd10df1489beee1d649a83613b
[asan] Initialize fake stack during thread init

If detect-stack-use-after-return is on, initialize fake stack during
AsanThread::Init(), rather than lazily.  This is required on Myriad.
From kcc: "There used to be a reason why this was done lazily, but I
don't remember if we still have that reason."  Tested on x86.

Differential Revision: https://reviews.llvm.org/D46626

llvm-svn: 332033
compiler-rt/lib/asan/asan_thread.cc
compiler-rt/lib/asan/asan_thread.h