Home
last modified time | relevance | path

Searched refs:TSD (Results 1 – 25 of 33) sorted by relevance

12

/external/scudo/standalone/tests/
Dtsd_test.cpp38 void commitBack(scudo::TSD<MockAllocator> *TSD) {} in commitBack() argument
95 auto TSD = Registry->getTSDAndLock(&UnlockRequired); in testRegistry() local
96 EXPECT_NE(TSD, nullptr); in testRegistry()
97 EXPECT_EQ(TSD->Cache.Canary, 0U); in testRegistry()
99 TSD->unlock(); in testRegistry()
102 TSD = Registry->getTSDAndLock(&UnlockRequired); in testRegistry()
103 EXPECT_NE(TSD, nullptr); in testRegistry()
104 EXPECT_EQ(TSD->Cache.Canary, 0U); in testRegistry()
105 memset(&TSD->Cache, 0x42, sizeof(TSD->Cache)); in testRegistry()
107 TSD->unlock(); in testRegistry()
[all …]
Dcombined_test.cpp410 auto *TSD = Allocator->getTSDRegistry()->getTSDAndLock(&UnlockRequired); in SCUDO_TYPED_TEST() local
411 EXPECT_TRUE(!TSD->Cache.isEmpty()); in SCUDO_TYPED_TEST()
412 TSD->Cache.drain(); in SCUDO_TYPED_TEST()
413 EXPECT_TRUE(TSD->Cache.isEmpty()); in SCUDO_TYPED_TEST()
415 TSD->unlock(); in SCUDO_TYPED_TEST()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dtsd_test.cpp38 void commitBack(scudo::TSD<MockAllocator> *TSD) {} in commitBack() argument
95 auto TSD = Registry->getTSDAndLock(&UnlockRequired); in testRegistry() local
96 EXPECT_NE(TSD, nullptr); in testRegistry()
97 EXPECT_EQ(TSD->Cache.Canary, 0U); in testRegistry()
99 TSD->unlock(); in testRegistry()
102 TSD = Registry->getTSDAndLock(&UnlockRequired); in testRegistry()
103 EXPECT_NE(TSD, nullptr); in testRegistry()
104 EXPECT_EQ(TSD->Cache.Canary, 0U); in testRegistry()
105 memset(&TSD->Cache, 0x42, sizeof(TSD->Cache)); in testRegistry()
107 TSD->unlock(); in testRegistry()
[all …]
/external/scudo/standalone/
Dtsd_shared.h57 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
58 TSD<Allocator> *TSD = getCurrentTSD(); in getTSDAndLock() local
59 DCHECK(TSD); in getTSDAndLock()
62 if (TSD->tryLock()) in getTSDAndLock()
63 return TSD; in getTSDAndLock()
68 TSD->lock(); in getTSDAndLock()
69 return TSD; in getTSDAndLock()
71 return getTSDAndLockSlow(TSD); in getTSDAndLock()
107 static_assert(alignof(TSD<Allocator>) >= 2, "");
109 ALWAYS_INLINE void setCurrentTSD(TSD<Allocator> *CurrentTSD) { in setCurrentTSD()
[all …]
Dtsd_exclusive.h61 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
114 TSD<Allocator> FallbackTSD;
117 static thread_local TSD<Allocator> ThreadTSD;
123 thread_local TSD<Allocator> TSDRegistryExT<Allocator>::ThreadTSD;
Dcombined.h237 void commitBack(TSD<ThisT> *TSD) { in commitBack() argument
238 Quarantine.drain(&TSD->QuarantineCache, in commitBack()
239 QuarantineCallback(*this, TSD->Cache)); in commitBack()
240 TSD->Cache.destroy(&Stats); in commitBack()
350 auto *TSD = TSDRegistry.getTSDAndLock(&UnlockRequired); variable
351 Block = TSD->Cache.allocate(ClassId);
358 Block = TSD->Cache.allocate(++ClassId);
363 TSD->unlock();
1112 auto *TSD = TSDRegistry.getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local
1113 TSD->Cache.deallocate(ClassId, BlockBegin); in quarantineOrDeallocateChunk()
[all …]
Dtsd.h26 template <class Allocator> struct alignas(SCUDO_CACHE_LINE_SIZE) TSD { struct
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dtsd_shared.h50 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
51 TSD<Allocator> *TSD = getCurrentTSD(); in getTSDAndLock() local
52 DCHECK(TSD); in getTSDAndLock()
55 if (TSD->tryLock()) in getTSDAndLock()
56 return TSD; in getTSDAndLock()
61 TSD->lock(); in getTSDAndLock()
62 return TSD; in getTSDAndLock()
64 return getTSDAndLockSlow(TSD); in getTSDAndLock()
100 static_assert(alignof(TSD<Allocator>) >= 2, "");
102 ALWAYS_INLINE void setCurrentTSD(TSD<Allocator> *CurrentTSD) { in setCurrentTSD()
[all …]
Dtsd_exclusive.h47 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
107 TSD<Allocator> FallbackTSD;
110 static thread_local TSD<Allocator> ThreadTSD;
116 thread_local TSD<Allocator> TSDRegistryExT<Allocator>::ThreadTSD;
Dcombined.h230 void commitBack(TSD<ThisT> *TSD) { in commitBack() argument
231 Quarantine.drain(&TSD->QuarantineCache, in commitBack()
232 QuarantineCallback(*this, TSD->Cache)); in commitBack()
233 TSD->Cache.destroy(&Stats); in commitBack()
321 auto *TSD = TSDRegistry.getTSDAndLock(&UnlockRequired); variable
322 Block = TSD->Cache.allocate(ClassId);
329 Block = TSD->Cache.allocate(++ClassId);
337 TSD->unlock();
1065 auto *TSD = TSDRegistry.getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local
1066 TSD->Cache.deallocate(ClassId, BlockBegin); in quarantineOrDeallocateChunk()
[all …]
Dtsd.h26 template <class Allocator> struct alignas(SCUDO_CACHE_LINE_SIZE) TSD { struct
/external/llvm-project/compiler-rt/lib/scudo/
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);
Dscudo_tsd_shared.cpp50 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) { in getTSDAndLockSlow() argument
72 u32 RandState = static_cast<u32>(TSD->getPrecedence()); in getTSDAndLockSlow()
101 TSD->lock(); in getTSDAndLockSlow()
102 return TSD; in getTSDAndLockSlow()
Dscudo_tsd_exclusive.cpp25 THREADLOCAL ScudoTSD TSD; variable
44 TSD.commitBack(); in teardownThread()
61 TSD.init(); in initThread()
Dscudo_allocator.cpp219 QuarantineCacheT *getQuarantineCache(ScudoTSD *TSD) { in getQuarantineCache() argument
220 return reinterpret_cast<QuarantineCacheT *>(TSD->QuarantineCachePlaceHolder); in getQuarantineCache()
348 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in allocate() local
349 BackendPtr = Backend.allocatePrimary(&TSD->Cache, ClassId); in allocate()
351 TSD->unlock(); in allocate()
414 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local
415 getBackend().deallocatePrimary(&TSD->Cache, BackendPtr, in quarantineOrDeallocateChunk()
418 TSD->unlock(); in quarantineOrDeallocateChunk()
433 ScudoTSD *TSD = getTSDAndLock(&UnlockRequired); in quarantineOrDeallocateChunk() local
434 Quarantine.Put(getQuarantineCache(TSD), QuarantineCallback(&TSD->Cache), in quarantineOrDeallocateChunk()
[all …]
Dscudo_tsd_exclusive.inc9 /// Scudo exclusive TSD fastpath functions implementation.
27 extern THREADLOCAL ScudoTSD TSD;
44 return &TSD;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/
DProfile.cpp339 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()
/external/llvm-project/llvm/lib/XRay/
DProfile.cpp339 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()
/external/llvm-project/clang-tools-extra/clangd/
DHover.cpp234 if (const auto *TSD = llvm::dyn_cast<ClassTemplateSpecializationDecl>(D)) { in getDeclForComment() local
237 if (TSD->getTemplateSpecializationKind() == TSK_Undeclared) in getDeclForComment()
238 return TSD->getSpecializedTemplate(); in getDeclForComment()
239 if (const auto *TIP = TSD->getTemplateInstantiationPattern()) in getDeclForComment()
242 if (const auto *TSD = llvm::dyn_cast<VarTemplateSpecializationDecl>(D)) { in getDeclForComment() local
243 if (TSD->getTemplateSpecializationKind() == TSK_Undeclared) in getDeclForComment()
244 return TSD->getSpecializedTemplate(); in getDeclForComment()
245 if (const auto *TIP = TSD->getTemplateInstantiationPattern()) in getDeclForComment()
/external/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp286 if (auto *TSD = dyn_cast<ClassTemplateSpecializationDecl>(RD)) { in reportRecord() local
290 SourceLocation ILoc = TSD->getPointOfInstantiation(); in reportRecord()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp319 if (auto *TSD = dyn_cast<ClassTemplateSpecializationDecl>(RD)) { in reportRecord() local
323 SourceLocation ILoc = TSD->getPointOfInstantiation(); in reportRecord()
DSmartPtrModeling.cpp149 const auto *TSD = dyn_cast<ClassTemplateSpecializationDecl>(RecordDecl); in getInnerPointerType() local
150 if (!TSD) in getInnerPointerType()
153 auto TemplateArgs = TSD->getTemplateArgs().asArray(); in getInnerPointerType()
/external/ImageMagick/PerlMagick/t/reference/read/
Dinput_pgm_p2.miff85 …@]TZed[7!���߸���� 4@I:, ?SHLA,574..09BLQNJNJ75CE:.3AA95>-$%#1_ghj]TSD���gg}�¡)…
Dinput_pgm_p5.miff85 …@]TZed[7!���߸���� 4@I:, ?SHLA,574..09BLQNJNJ75CE:.3AA95>-$%#1_ghj]TSD���gg}�¡)…
Dinput_fits.miff94 …@]TZed[7!���߸���� 4@I:, ?SHLA,574..09BLQNJNJ75CE:.3AA95>-$%#1_ghj]TSD���gg}�¡)…

12