Add a TLS slot for TSAN.
This is so TSAN won't need to rely on pthread_getspecific for finding the current thread state. Change-Id: Id3befeabec0a9f7ca77b5549fbc427e22e6aaa34
This commit is contained in:
parent
6816d8cc69
commit
aa23b2ee5e
@ -70,6 +70,10 @@ enum {
|
||||
// Fast storage for Thread::Current() in ART.
|
||||
TLS_SLOT_ART_THREAD_SELF,
|
||||
|
||||
// Lets TSAN avoid using pthread_getspecific for finding the current thread
|
||||
// state.
|
||||
TLS_SLOT_TSAN,
|
||||
|
||||
BIONIC_TLS_SLOTS // Must come last!
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user