Home
last modified time | relevance | path

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

/external/compiler-rt/lib/tsan/rtl/
Dtsan_dense_alloc.h33 template<typename T, uptr kL1Size, uptr kL2Size> friend class DenseSlabAlloc;
36 template<typename T, uptr kL1Size, uptr kL2Size>
45 CHECK_EQ(kL2Size & (kL2Size - 1), 0); in DenseSlabAlloc()
46 CHECK_GE(1ull << (sizeof(IndexT) * 8), kL1Size * kL2Size); in DenseSlabAlloc()
57 UnmapOrDie(map_[i], kL2Size * sizeof(T)); in ~DenseSlabAlloc()
76 DCHECK_LE(idx, kL1Size * kL2Size); in Map()
77 return &map_[idx / kL2Size][idx % kL2Size]; in Map()
107 T *batch = (T*)MmapOrDie(kL2Size * sizeof(T), "DenseSlabAllocator"); in Refill()
110 for (IndexT i = start; i < kL2Size; i++) { in Refill()
112 *(IndexT*)(batch + i) = i + 1 + fillpos_ * kL2Size; in Refill()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_deadlock_detector2.cc29 const int kL2Size = 1024; variable
30 const int kMaxMutex = kL1Size * kL2Size;
161 return &mutex[id / kL2Size][id % kL2Size]; in getMutex()
169 if (m >= tab && m < tab + kL2Size) in getMutexId()
170 return i * kL2Size + (m - tab); in getMutexId()
183 if ((id_gen % kL2Size) == 0) { in allocateId()
184 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex), in allocateId()