summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-01-15 03:39:04 +0000
committerYabin Cui <yabinc@google.com>2016-01-15 03:39:04 +0000
commitbd3a772e9ff81e32c308d05670dc35438e5f93c4 (patch)
tree21baeaccf423be9297afe840a2efbeee67ace844 /clang/test/CodeGenCXX
parent26907f9236d84d2ccc55a04c8fd1ceb63d34d112 (diff)
downloadbcm5719-llvm-bd3a772e9ff81e32c308d05670dc35438e5f93c4.tar.gz
bcm5719-llvm-bd3a772e9ff81e32c308d05670dc35438e5f93c4.zip
[tsan] Store the pointer to ThreadState in TLS slot on Android.
Summary: 1. Android doesn't support __thread keyword. So allocate ThreadState dynamically and store its pointer in one TLS slot provided by Android. 2. On Android, intercepted functions can be called before ThreadState is initialized. So add test of thr_->is_inited in some places. 3. On Android, intercepted functions can be called after ThreadState is destroyed. So add a fake dead_thread_state to represent all destroyed ThreadStates. And that is also why we don't store the pointer to ThreadState in shadow memory of pthread_self(). Reviewers: kcc, eugenis, dvyukov Subscribers: kubabrecka, llvm-commits, tberghammer, danalbert, srhines Differential Revision: http://reviews.llvm.org/D15301 llvm-svn: 257866
Diffstat (limited to 'clang/test/CodeGenCXX')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud