Searched refs:TSD (Results 1 - 12 of 12) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_tsd_shared.inc9 /// Scudo shared TSD fastpath functions implementation.
42 ScudoTSD *getTSDAndLockSlow(ScudoTSD *TSD);
45 ScudoTSD *TSD = getCurrentTSD();
46 DCHECK(TSD && "No TSD associated with the current thread!");
49 if (TSD->tryLock())
50 return TSD;
52 return getTSDAndLockSlow(TSD);
H A Dscudo_tsd_exclusive.inc9 /// Scudo exclusive TSD fastpath functions implementation.
27 extern THREADLOCAL ScudoTSD TSD;
44 return &TSD;
H A Dscudo_tsd_exclusive.cpp9 /// Scudo exclusive TSD implementation.
25 THREADLOCAL ScudoTSD TSD; member in namespace:__scudo
27 // Fallback TSD for when the thread isn't initialized yet or is torn down. It
44 TSD.commitBack();
61 TSD.init();
H A Dscudo_tsd_shared.cpp9 /// Scudo shared TSD implementation.
50 ALWAYS_INLINE void setCurrentTSD(ScudoTSD *TSD) { argument
52 *get_android_tls_ptr() = reinterpret_cast<uptr>(TSD);
54 CurrentTSD = TSD;
56 CHECK_EQ(pthread_setspecific(PThreadKey, reinterpret_cast<void *>(TSD)), 0);
67 ScudoTSD *getTSDAndLockSlow(ScudoTSD *TSD) { argument
69 // Use the Precedence of the current TSD as our random seed. Since we are in
72 u32 RandState = static_cast<u32>(TSD->getPrecedence());
85 // A 0 precedence here means another thread just locked this TSD.
101 TSD
[all...]
H A Dscudo_allocator.cpp218 QuarantineCacheT *getQuarantineCache(ScudoTSD *TSD) { argument
219 return reinterpret_cast<QuarantineCacheT *>(TSD->QuarantineCachePlaceHolder);
347 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); local
348 BackendPtr = Backend.allocatePrimary(&TSD->Cache, ClassId);
350 TSD->unlock();
413 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); local
414 getBackend().deallocatePrimary(&TSD->Cache, BackendPtr,
417 TSD->unlock();
432 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); local
433 Quarantine.Put(getQuarantineCache(TSD), QuarantineCallbac
569 commitBack(ScudoTSD *TSD) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dtsd_shared.h22 TSDs = reinterpret_cast<TSD<Allocator> *>(
23 map(nullptr, sizeof(TSD<Allocator>) * NumberOfTSDs, "scudo:tsd"));
50 sizeof(TSD<Allocator>) * NumberOfTSDs);
62 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) {
63 TSD<Allocator> *TSD = getCurrentTSD(); local
64 DCHECK(TSD);
67 if (TSD->tryLock())
68 return TSD;
70 return getTSDAndLockSlow(TSD);
[all...]
H A Dtsd_exclusive.h28 FallbackTSD = reinterpret_cast<TSD<Allocator> *>(
29 map(nullptr, sizeof(TSD<Allocator>), "scudo:tsd"));
39 unmap(reinterpret_cast<void *>(FallbackTSD), sizeof(TSD<Allocator>));
48 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) {
60 // To disable the exclusive TSD registry, we effectively lock the fallback TSD
99 TSD<Allocator> *FallbackTSD;
102 static THREADLOCAL TSD<Allocator> ThreadTSD;
108 THREADLOCAL TSD<Allocator> TSDRegistryExT<Allocator>::ThreadTSD;
H A Dtsd.h26 template <class Allocator> struct ALIGNED(SCUDO_CACHE_LINE_SIZE) TSD {
H A Dcombined.h187 // Release the resources used by a TSD, which involves:
192 void commitBack(TSD<ThisT> *TSD) { argument
193 Quarantine.drain(&TSD->QuarantineCache,
194 QuarantineCallback(*this, TSD->Cache));
195 TSD->Cache.destroy(&Stats);
245 auto *TSD = TSDRegistry.getTSDAndLock(&UnlockRequired); local
246 Block = TSD->Cache.allocate(ClassId);
248 TSD->unlock();
654 auto *TSD
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/XRay/
H A DProfile.cpp339 auto &TSD = ThreadStacks[E.TId]; local
345 TSD.push_back({E.TSC, E.FuncId});
355 while (!TSD.empty()) {
356 auto Top = TSD.back();
359 transform(reverse(TSD), std::back_inserter(Path),
365 TSD.pop_back();
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp318 if (auto *TSD = dyn_cast<ClassTemplateSpecializationDecl>(RD)) {
322 SourceLocation ILoc = TSD->getPointOfInstantiation();
/freebsd-11-stable/sys/contrib/edk2/Include/Library/
H A DBaseLib.h6546 UINT32 TSD:1; ///< Time Stamp Disable. member in struct:__anon6014::__anon6015

Completed in 148 milliseconds