Searched refs:kL2Size (Results 1 – 6 of 6) sorted by relevance
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/ |
H A D | tsan_dense_alloc.h | 35 template <typename T, uptr kL1Size, uptr kL2Size, u64 kReserved = 0> 43 static_assert((kL2Size & (kL2Size - 1)) == 0, 45 static_assert((kL1Size * kL2Size) <= (1ull << (sizeof(IndexT) * 8)), 47 static_assert(((kL1Size * kL2Size - 1) & kReserved) == 0, 64 UnmapOrDie(map_[i], kL2Size * sizeof(T)); in ~DenseSlabAlloc() 83 DCHECK_LE(idx, kL1Size * kL2Size); in Map() 84 return &map_[idx / kL2Size][idx % kL2Size]; in Map() 104 return atomic_load_relaxed(&fillpos_) * kL2Size * sizeof(T); in AllocatedMemory() 120 name_, kL1Size, kL2Size); in Refill() 124 fillpos, kL1Size, kL2Size); in Refill() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
H A D | tsan_dense_alloc.h | 31 template<typename T, uptr kL1Size, uptr kL2Size> friend class DenseSlabAlloc; 34 template<typename T, uptr kL1Size, uptr kL2Size> 43 CHECK_EQ(kL2Size & (kL2Size - 1), 0); in DenseSlabAlloc() 44 CHECK_GE(1ull << (sizeof(IndexT) * 8), kL1Size * kL2Size); in DenseSlabAlloc() 56 UnmapOrDie(map_[i], kL2Size * sizeof(T)); in ~DenseSlabAlloc() 75 DCHECK_LE(idx, kL1Size * kL2Size); in Map() 76 return &map_[idx / kL2Size][idx % kL2Size]; in Map() 105 name_, kL1Size, kL2Size); in Refill() 109 name_, fillpos_, kL1Size, kL2Size); in Refill() 110 T *batch = (T*)MmapOrDie(kL2Size * sizeof(T), name_); in Refill() [all …]
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
H A D | tsan_dense_alloc.h | 33 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() 58 UnmapOrDie(map_[i], kL2Size * sizeof(T)); in ~DenseSlabAlloc() 77 DCHECK_LE(idx, kL1Size * kL2Size); in Map() 78 return &map_[idx / kL2Size][idx % kL2Size]; in Map() 107 name_, kL1Size, kL2Size); in Refill() 111 name_, fillpos_, kL1Size, kL2Size); in Refill() 112 T *batch = (T*)MmapOrDie(kL2Size * sizeof(T), name_); in Refill() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_deadlock_detector2.cc | 27 const int kL2Size = 1024; variable 28 const int kMaxMutex = kL1Size * kL2Size; 155 return &mutex[id / kL2Size][id % kL2Size]; in getMutex() 163 if (m >= tab && m < tab + kL2Size) in getMutexId() 164 return i * kL2Size + (m - tab); in getMutexId() 177 if ((id_gen % kL2Size) == 0) { in allocateId() 178 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex), in allocateId()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_deadlock_detector2.cpp | 28 const int kL2Size = 1024; variable 29 const int kMaxMutex = kL1Size * kL2Size; 155 MutexState *DD::getMutex(u32 id) { return &mutex[id / kL2Size][id % kL2Size]; } in getMutex() 162 if (m >= tab && m < tab + kL2Size) in getMutexId() 163 return i * kL2Size + (m - tab); in getMutexId() 176 if ((id_gen % kL2Size) == 0) { in allocateId() 177 mutex[id_gen / kL2Size] = (MutexState *)MmapOrDie( in allocateId() 178 kL2Size * sizeof(MutexState), "deadlock detector (mutex table)"); in allocateId()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_deadlock_detector2.cc | 29 const int kL2Size = 1024; variable 30 const int kMaxMutex = kL1Size * kL2Size; 157 return &mutex[id / kL2Size][id % kL2Size]; in getMutex() 165 if (m >= tab && m < tab + kL2Size) in getMutexId() 166 return i * kL2Size + (m - tab); in getMutexId() 179 if ((id_gen % kL2Size) == 0) { in allocateId() 180 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex), in allocateId()
|