| /freebsd-13.1/contrib/llvm-project/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 | 233 void commitBack(TSD<ThisT> *TSD) { in commitBack() argument 234 Quarantine.drain(&TSD->QuarantineCache, in commitBack() 235 QuarantineCallback(*this, TSD->Cache)); in commitBack() 236 TSD->Cache.destroy(&Stats); in commitBack() 347 Block = TSD->Cache.allocate(ClassId); 354 Block = TSD->Cache.allocate(++ClassId); 359 TSD->unlock(); 1111 TSD->Cache.deallocate(ClassId, BlockBegin); in quarantineOrDeallocateChunk() 1113 TSD->unlock(); in quarantineOrDeallocateChunk() 1123 Quarantine.put(&TSD->QuarantineCache, in quarantineOrDeallocateChunk() [all …]
|
| /freebsd-13.1/contrib/llvm-project/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) 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 351 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in allocate() local 354 TSD->unlock(); in allocate() 417 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local 421 TSD->unlock(); in quarantineOrDeallocateChunk() 436 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local 437 Quarantine.Put(getQuarantineCache(TSD), QuarantineCallback(&TSD->Cache), in quarantineOrDeallocateChunk() 440 TSD->unlock(); in quarantineOrDeallocateChunk() 573 void commitBack(ScudoTSD *TSD) { in commitBack() 574 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;
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/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 | 189 const auto *TSD = dyn_cast<ClassTemplateSpecializationDecl>(RD); in getInnerPointerType() local 190 if (!TSD) in getInnerPointerType() 193 auto TemplateArgs = TSD->getTemplateArgs().asArray(); in getInnerPointerType()
|
| /freebsd-13.1/contrib/jemalloc/ |
| H A D | ChangeLog | 81 - Refactor the TSD module. (@davidtgoldblatt) 592 - Fix TSD fetches to avoid (recursive) allocation. This is relevant to 1053 Solaris, and could affect other platforms with similar pthreads TSD 1418 - Add compile-time support for all TLS-related functionality via pthreads TSD. 1420 TSD implementation with similar performance.
|
| /freebsd-13.1/sys/contrib/edk2/Include/Library/ |
| H A D | BaseLib.h | 5319 UINT32 TSD:1; ///< Time Stamp Disable. member
|