Home
last modified time | relevance | path

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

/external/compiler-rt/lib/tsan/rtl/
Dtsan_fd.cc28 struct FdDesc { struct
74 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { in fddesc()
80 uptr size = kTableSizeL2 * sizeof(FdDesc); in fddesc()
90 return &((FdDesc*)l1)[fd % kTableSizeL2]; // NOLINT in fddesc()
96 FdDesc *d = fddesc(thr, pc, fd); in init()
133 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdOnFork()
137 FdDesc *d = &tab[l2]; in FdOnFork()
145 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdLocation()
149 int l2 = (addr - (uptr)tab) / sizeof(FdDesc); in FdLocation()
150 FdDesc *d = &tab[l2]; in FdLocation()
[all …]