Lines Matching refs:TSD
9 /// Scudo shared TSD implementation.
50 ALWAYS_INLINE void setCurrentTSD(ScudoTSD *TSD) {
52 *get_android_tls_ptr() = reinterpret_cast<uptr>(TSD);
54 CurrentTSD = TSD;
56 CHECK_EQ(pthread_setspecific(PThreadKey, reinterpret_cast<void *>(TSD)), 0);
67 ScudoTSD *getTSDAndLockSlow(ScudoTSD *TSD) {
69 // Use the Precedence of the current TSD as our random seed. Since we are in
72 u32 RandState = static_cast<u32>(TSD->getPrecedence());
85 // A 0 precedence here means another thread just locked this TSD.
101 TSD->lock();
102 return TSD;