Searched refs:SyncVar (Results 1 – 7 of 7) sorted by relevance
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_sync_test.cc | 56 SyncVar *s1 = m->GetIfExistsAndLock((uptr)&block[0], true); in TEST() 57 EXPECT_EQ(s1, (SyncVar*)0); in TEST() 59 EXPECT_NE(s1, (SyncVar*)0); in TEST() 62 SyncVar *s2 = m->GetOrCreateAndLock(thr, 0, (uptr)&block[1], false); in TEST() 63 EXPECT_NE(s2, (SyncVar*)0); in TEST() 68 EXPECT_EQ(s1, (SyncVar*)0); in TEST() 70 EXPECT_EQ(s2, (SyncVar*)0); in TEST() 81 SyncVar *s1 = m->GetOrCreateAndLock(thr, 0, (uptr)&block1[0], true); in TEST() 83 SyncVar *s2 = m->GetOrCreateAndLock(thr, 0, (uptr)&block1[1], true); in TEST() 97 EXPECT_EQ(s1, (SyncVar*)0); in TEST() [all …]
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_sync.cc | 20 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s); 22 SyncVar::SyncVar() in SyncVar() function in __tsan::SyncVar 27 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { in Init() 39 void SyncVar::Reset(Processor *proc) { in Reset() 103 SyncVar *s = sync_alloc_.Map(idx & ~kFlagMask); in FreeRange() 191 SyncVar * s = sync_alloc_.Map(idx & ~kFlagMask); in GetBlock() 196 SyncVar* MetaMap::GetOrCreateAndLock(ThreadState *thr, uptr pc, in GetOrCreateAndLock() 201 SyncVar* MetaMap::GetIfExistsAndLock(uptr addr, bool write_lock) { in GetIfExistsAndLock() 205 SyncVar* MetaMap::GetAndLock(ThreadState *thr, uptr pc, in GetAndLock() 210 SyncVar *mys = 0; in GetAndLock() [all …]
|
D | tsan_rtl_mutex.cc | 43 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) { in DDMutexInit() 75 SyncVar *s = ctx->metamap.GetOrCreateAndLock(thr, pc, addr, true); in MutexCreate() 87 SyncVar *s = ctx->metamap.GetIfExistsAndLock(addr, true); in MutexDestroy() 102 && s->owner_tid != SyncVar::kInvalidTid in MutexDestroy() 125 SyncVar *s = ctx->metamap.GetIfExistsAndLock(addr, true); in MutexDestroy() 149 SyncVar *s = ctx->metamap.GetOrCreateAndLock(thr, pc, addr, true); in MutexLock() 153 if (s->owner_tid == SyncVar::kInvalidTid) { in MutexLock() 193 SyncVar *s = ctx->metamap.GetOrCreateAndLock(thr, pc, addr, true); in MutexUnlock() 208 s->owner_tid = SyncVar::kInvalidTid; in MutexUnlock() 237 SyncVar *s = ctx->metamap.GetOrCreateAndLock(thr, pc, addr, false); in MutexReadLock() [all …]
|
D | tsan_sync.h | 26 struct SyncVar { struct 27 SyncVar(); 80 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc, argument 82 SyncVar* GetIfExistsAndLock(uptr addr, bool write_lock); 93 typedef DenseSlabAlloc<SyncVar, 1<<16, 1<<10> SyncAlloc; 98 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
|
D | tsan_interface_atomic.cc | 232 SyncVar *s = ctx->metamap.GetOrCreateAndLock(thr, pc, (uptr)a, false); in AtomicLoad() 266 SyncVar *s = ctx->metamap.GetOrCreateAndLock(thr, pc, (uptr)a, true); in AtomicStore() 278 SyncVar *s = 0; in AtomicRMW() 402 SyncVar *s = 0; in AtomicCAS()
|
D | tsan_rtl_report.cc | 258 void ScopedReport::AddMutex(const SyncVar *s) { in AddMutex() 275 uptr addr = SyncVar::SplitId(id, &uid); in AddMutex() 276 SyncVar *s = ctx->metamap.GetIfExistsAndLock(addr, true); in AddMutex()
|
D | tsan_rtl.h | 567 void AddMutex(const SyncVar *s);
|