| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | tsd_test.cpp | 41 void commitBack(scudo::TSD<MockAllocator> *TSD) {} in commitBack() argument 104 EXPECT_NE(TSD, nullptr); in testRegistry() 107 TSD->unlock(); in testRegistry() 111 EXPECT_NE(TSD, nullptr); in testRegistry() 113 memset(&TSD->Cache, 0x42, sizeof(TSD->Cache)); in testRegistry() 115 TSD->unlock(); in testRegistry() 140 EXPECT_NE(TSD, nullptr); in stressCache() 148 TSD->Cache.Canary = Canary; in stressCache() 153 TSD->unlock(); in stressCache() 198 EXPECT_NE(TSD, nullptr); in stressSharedRegistry() [all …]
|
| H A D | combined_test.cpp | 448 auto *TSD = Allocator->getTSDRegistry()->getTSDAndLock(&UnlockRequired); in SCUDO_TYPED_TEST() local 449 EXPECT_TRUE(!TSD->Cache.isEmpty()); in SCUDO_TYPED_TEST() 450 TSD->Cache.drain(); in SCUDO_TYPED_TEST() 451 EXPECT_TRUE(TSD->Cache.isEmpty()); in SCUDO_TYPED_TEST() 453 TSD->unlock(); in SCUDO_TYPED_TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | tsd_shared.h | 62 TSD<Allocator> *TSD = getCurrentTSD(); in getTSDAndLock() local 63 DCHECK(TSD); in getTSDAndLock() 66 if (TSD->tryLock()) in getTSDAndLock() 67 return TSD; in getTSDAndLock() 72 TSD->lock(); in getTSDAndLock() 73 return TSD; in getTSDAndLock() 75 return getTSDAndLockSlow(TSD); in getTSDAndLock() 118 ALWAYS_INLINE TSD<Allocator> *getCurrentTSD() { in getCurrentTSD() 161 NOINLINE TSD<Allocator> *getTSDAndLockSlow(TSD<Allocator> *CurrentTSD) { in getTSDAndLockSlow() 176 TSD<Allocator> *CandidateTSD = nullptr; in getTSDAndLockSlow() [all …]
|
| H A D | tsd_exclusive.h | 65 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock() 118 TSD<Allocator> FallbackTSD; 121 static thread_local TSD<Allocator> ThreadTSD; 127 thread_local TSD<Allocator> TSDRegistryExT<Allocator>::ThreadTSD;
|
| H A D | tsd.h | 26 template <class Allocator> struct alignas(SCUDO_CACHE_LINE_SIZE) TSD { in alignas() 29 using ThisT = TSD<Allocator>; in alignas()
|
| H A D | combined.h | 243 void commitBack(TSD<ThisT> *TSD) { in commitBack() argument 244 Quarantine.drain(&TSD->QuarantineCache, in commitBack() 245 QuarantineCallback(*this, TSD->Cache)); in commitBack() 246 TSD->Cache.destroy(&Stats); in commitBack() 357 Block = TSD->Cache.allocate(ClassId); 364 Block = TSD->Cache.allocate(++ClassId); 369 TSD->unlock(); 1121 TSD->Cache.deallocate(ClassId, BlockBegin); in quarantineOrDeallocateChunk() 1123 TSD->unlock(); in quarantineOrDeallocateChunk() 1133 Quarantine.put(&TSD->QuarantineCache, in quarantineOrDeallocateChunk() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_tsd_shared.inc | 9 /// Scudo shared TSD fastpath functions implementation. 42 ScudoTSD *getTSDAndLockSlow(ScudoTSD *TSD); 46 ScudoTSD *TSD = getCurrentTSD(); 47 DCHECK(TSD && "No TSD associated with the current thread!"); 50 if (TSD->tryLock()) 51 return TSD; 53 return getTSDAndLockSlow(TSD);
|
| H A D | scudo_tsd_shared.cpp | 50 ALWAYS_INLINE void setCurrentTSD(ScudoTSD *TSD) { in setCurrentTSD() argument 52 *get_android_tls_ptr() = reinterpret_cast<uptr>(TSD); in setCurrentTSD() 54 CurrentTSD = TSD; in setCurrentTSD() 56 CHECK_EQ(pthread_setspecific(PThreadKey, reinterpret_cast<void *>(TSD)), 0); in setCurrentTSD() 67 ScudoTSD *getTSDAndLockSlow(ScudoTSD *TSD) SANITIZER_NO_THREAD_SAFETY_ANALYSIS { in getTSDAndLockSlow() argument 72 u32 RandState = static_cast<u32>(TSD->getPrecedence()); in getTSDAndLockSlow() 101 TSD->lock(); in getTSDAndLockSlow() 102 return TSD; in getTSDAndLockSlow()
|
| H A D | scudo_allocator.cpp | 219 QuarantineCacheT *getQuarantineCache(ScudoTSD *TSD) { in getQuarantineCache() argument 352 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in allocate() local 355 TSD->unlock(); in allocate() 418 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local 422 TSD->unlock(); in quarantineOrDeallocateChunk() 437 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local 438 Quarantine.Put(getQuarantineCache(TSD), QuarantineCallback(&TSD->Cache), in quarantineOrDeallocateChunk() 441 TSD->unlock(); in quarantineOrDeallocateChunk() 574 void commitBack(ScudoTSD *TSD) { in commitBack() 575 Quarantine.Drain(getQuarantineCache(TSD), QuarantineCallback(&TSD->Cache)); in commitBack() [all …]
|
| H A D | scudo_tsd_exclusive.cpp | 25 THREADLOCAL ScudoTSD TSD; variable 44 TSD.commitBack(); in teardownThread() 61 TSD.init(); in initThread()
|
| H A D | scudo_tsd_exclusive.inc | 9 /// Scudo exclusive TSD fastpath functions implementation. 26 __attribute__((tls_model("initial-exec"))) extern THREADLOCAL ScudoTSD TSD; 44 return &TSD;
|
| /llvm-project-15.0.7/llvm/lib/XRay/ |
| H A D | Profile.cpp | 339 auto &TSD = ThreadStacks[E.TId]; in profileFromTrace() local 345 TSD.push_back({E.TSC, E.FuncId}); in profileFromTrace() 355 while (!TSD.empty()) { in profileFromTrace() 356 auto Top = TSD.back(); in profileFromTrace() 359 transform(reverse(TSD), std::back_inserter(Path), in profileFromTrace() 365 TSD.pop_back(); in profileFromTrace()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Hover.cpp | 290 if (const auto *TSD = llvm::dyn_cast<ClassTemplateSpecializationDecl>(D)) { in getDeclForComment() local 293 if (TSD->getTemplateSpecializationKind() == TSK_Undeclared) in getDeclForComment() 294 DeclForComment = TSD->getSpecializedTemplate(); in getDeclForComment() 295 else if (const auto *TIP = TSD->getTemplateInstantiationPattern()) in getDeclForComment() 297 } else if (const auto *TSD = in getDeclForComment() local 299 if (TSD->getTemplateSpecializationKind() == TSK_Undeclared) in getDeclForComment() 300 DeclForComment = TSD->getSpecializedTemplate(); in getDeclForComment() 301 else if (const auto *TIP = TSD->getTemplateInstantiationPattern()) in getDeclForComment()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 324 if (auto *TSD = dyn_cast<ClassTemplateSpecializationDecl>(RD)) { in reportRecord() local 328 SourceLocation ILoc = TSD->getPointOfInstantiation(); in reportRecord()
|
| H A D | SmartPtrModeling.cpp | 186 const auto *TSD = dyn_cast<ClassTemplateSpecializationDecl>(RD); in getInnerPointerType() local 187 if (!TSD) in getInnerPointerType() 190 auto TemplateArgs = TSD->getTemplateArgs().asArray(); in getInnerPointerType()
|
| /llvm-project-15.0.7/lldb/docs/ |
| H A D | lldb-gdb-remote.txt | 1830 // is able to find the Thread Specific Address (TSD) for a thread and include 1838 // Thread Specific Data (TSD) address, the dispatch_queue_t value if the thread
|