Home
last modified time | relevance | path

Searched refs:SyncVar (Results 1 – 7 of 7) sorted by relevance

/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_sync_test.cc56 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/
Dtsan_sync.cc20 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 …]
Dtsan_rtl_mutex.cc43 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 …]
Dtsan_sync.h26 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,
Dtsan_interface_atomic.cc232 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()
Dtsan_rtl_report.cc258 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()
Dtsan_rtl.h567 void AddMutex(const SyncVar *s);