OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SyncVar
(Results
1 - 10
of
10
) sorted by null
/external/compiler-rt/lib/tsan/rtl/
tsan_sync.h
52
struct
SyncVar
{
53
explicit
SyncVar
(uptr addr, u64 uid);
70
SyncVar
*next; // In SyncTab hashtable.
92
SyncVar
* GetOrCreateAndLock(ThreadState *thr, uptr pc,
94
SyncVar
* GetIfExistsAndLock(uptr addr, bool write_lock);
96
// If the
SyncVar
does not exist, returns 0.
97
SyncVar
* GetAndRemove(ThreadState *thr, uptr pc, uptr addr);
99
SyncVar
* Create(ThreadState *thr, uptr pc, uptr addr);
106
SyncVar
*val;
107
char pad[kCacheLineSize - sizeof(Mutex) - sizeof(
SyncVar
*)]; // NOLIN
[
all
...]
tsan_sync.cc
20
SyncVar
::
SyncVar
(uptr addr, u64 uid)
44
SyncVar
*tmp = tab_[i].val;
51
SyncVar
* SyncTab::GetOrCreateAndLock(ThreadState *thr, uptr pc,
56
SyncVar
* SyncTab::GetIfExistsAndLock(uptr addr, bool write_lock) {
60
SyncVar
* SyncTab::Create(ThreadState *thr, uptr pc, uptr addr) {
62
void *mem = internal_alloc(MBlockSync, sizeof(
SyncVar
));
64
SyncVar
*res = new(mem)
SyncVar
(addr, uid);
71
SyncVar
* SyncTab::GetAndLock(ThreadState *thr, uptr pc
[
all
...]
tsan_rtl_mutex.cc
35
SyncVar
*s = ctx->synctab.GetOrCreateAndLock(thr, pc, addr, true);
53
SyncVar
*s = ctx->synctab.GetAndRemove(thr, pc, addr);
63
&& s->owner_tid !=
SyncVar
::kInvalidTid
88
SyncVar
*s = CTX()->synctab.GetOrCreateAndLock(thr, pc, addr, true);
91
if (s->owner_tid ==
SyncVar
::kInvalidTid) {
121
SyncVar
*s = CTX()->synctab.GetOrCreateAndLock(thr, pc, addr, true);
142
s->owner_tid =
SyncVar
::kInvalidTid;
162
SyncVar
*s = CTX()->synctab.GetOrCreateAndLock(thr, pc, addr, false);
165
if (s->owner_tid !=
SyncVar
::kInvalidTid) {
183
SyncVar
*s = CTX()->synctab.GetOrCreateAndLock(thr, pc, addr, true)
[
all
...]
tsan_rtl.h
84
SyncVar
*ListHead() const {
85
return (
SyncVar
*)(GetLsb(raw[0] >> 1, 44) << 3);
88
void ListPush(
SyncVar
*v) {
89
SyncVar
*lst = ListHead();
97
SyncVar
*ListPop() {
98
SyncVar
*lst = ListHead();
99
SyncVar
*nxt = lst->next;
109
SyncVar
*lst = ListHead();
566
void AddMutex(const
SyncVar
*s);
636
SyncVar
* GetJavaSync(ThreadState *thr, uptr pc, uptr addr
[
all
...]
tsan_interface_java.cc
32
SyncVar
*head;
45
SyncVar
*s = head;
47
SyncVar
*s1 = s->next;
121
SyncVar
* GetJavaSync(ThreadState *thr, uptr pc, uptr addr,
129
SyncVar
*s = b->head;
151
SyncVar
* GetAndRemoveJavaSync(ThreadState *thr, uptr pc, uptr addr) {
246
for (
SyncVar
*sync = d->head; sync; sync = sync->next) {
tsan_mman.cc
127
for (
SyncVar
*s = b->ListHead(); s;) {
128
SyncVar
*res = s;
tsan_interface_atomic.cc
256
SyncVar
*s = CTX()->synctab.GetOrCreateAndLock(thr, pc, (uptr)a, false);
280
SyncVar
*s = CTX()->synctab.GetOrCreateAndLock(thr, pc, (uptr)a, true);
293
SyncVar
*s = 0;
357
SyncVar
*s = 0;
tsan_rtl_report.cc
170
uptr addr =
SyncVar
::SplitId(d.id, &uid);
171
SyncVar
*s = ctx_->synctab.GetIfExistsAndLock(addr, false);
263
void ScopedReport::AddMutex(const
SyncVar
*s) {
tsan_fd.cc
63
SyncVar
*v = CTX()->synctab.GetAndRemove(thr, pc, (uptr)s);
/external/compiler-rt/lib/tsan/tests/unit/
tsan_sync_test.cc
33
SyncVar
*golden[kRange] = {};
39
SyncVar
*v = tab.GetOrCreateAndLock(thr, pc, addr, true);
46
SyncVar
*v = tab.GetAndRemove(thr, pc, addr);
58
SyncVar
*v = tab.GetAndRemove(thr, pc, addr);
Completed in 312 milliseconds