Searched refs:kL2Size (Results 1 - 2 of 2) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_dense_alloc.h32 template<typename T, uptr kL1Size, uptr kL2Size> friend class DenseSlabAlloc;
35 template<typename T, uptr kL1Size, uptr kL2Size>
42 // Check that kL1Size and kL2Size are sane.
44 CHECK_EQ(kL2Size & (kL2Size - 1), 0);
45 CHECK_GE(1ull << (sizeof(IndexT) * 8), kL1Size * kL2Size);
57 UnmapOrDie(map_[i], kL2Size * sizeof(T));
76 DCHECK_LE(idx, kL1Size * kL2Size);
77 return &map_[idx / kL2Size][idx % kL2Size];
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cpp28 const int kL2Size = 1024; member in namespace:__sanitizer
29 const int kMaxMutex = kL1Size * kL2Size;
156 return &mutex[id / kL2Size][id % kL2Size];
164 if (m >= tab && m < tab + kL2Size)
165 return i * kL2Size + (m - tab);
178 if ((id_gen % kL2Size) == 0) {
179 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex),

Completed in 48 milliseconds