Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_thread.cc373 bool unaligned = (addr % kShadowCell) != 0; in MemoryAccessRange()
376 for (; addr % kShadowCell && size; addr++, size--) { in MemoryAccessRange()
380 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()
387 for (; size >= kShadowCell; addr += kShadowCell, size -= kShadowCell) { in MemoryAccessRange()
401 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()
H A Dtsan_rtl.cc303 for (int x = -(int)kShadowCell; x <= (int)kShadowCell; x += kShadowCell) { in CheckShadowMapping()
304 const uptr p = RoundDown(p0 + x, kShadowCell); in CheckShadowMapping()
887 uptr offset = addr % kShadowCell; in MemoryRangeSet()
889 offset = kShadowCell - offset; in MemoryRangeSet()
902 size = (size + (kShadowCell - 1)) & ~(kShadowCell - 1); in MemoryRangeSet()
907 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()
909 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()
918 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()
H A Dtsan_defs.h81 const uptr kShadowCell = 8; variable
87 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
H A Dtsan_platform.h799 return (((x) & ~(Mapping::kAppMemMsk | (kShadowCell - 1))) in MemToShadowImpl()
803 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl()
805 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()