/llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
H A D | quarantine_test.cpp | 27 typedef typename QuarantineT::CacheT CacheT; typedef 31 static void deallocateCache(CacheT *Cache) { in deallocateCache() 71 CacheT Cache; in TEST() 72 CacheT ToDeallocate; in TEST() 82 CacheT Cache; in TEST() 87 CacheT ToDeallocate; in TEST() 102 CacheT From; in TEST() 105 CacheT Cache; in TEST() 113 CacheT ToDeallocate; in TEST() 129 CacheT From; in TEST() [all …]
|
H A D | primary_test.cpp | 214 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() 264 typename Primary::CacheT Cache; in TEST() 272 const scudo::u16 MaxCachedBlockCount = Primary::CacheT::getMaxCached(Size); in TEST() 302 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() 345 static thread_local typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() 400 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() 416 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST()
|
H A D | allocator_config_test.cpp | 64 using CacheT = scudo::MapAllocatorNoCache<Config>; typedef 74 template <typename T> using CacheT = scudo::MapAllocatorCache<T>; typedef
|
H A D | tsd_test.cpp | 29 using CacheT = struct MockCache { typedef in MockAllocator 41 void initCache(CacheT *Cache) { *Cache = {}; } in initCache()
|
H A D | secondary_test.cpp | 96 using CacheT = scudo::MapAllocatorNoCache<Config>; typedef 116 template <typename Config> using CacheT = scudo::MapAllocatorCache<Config>; typedef 279 using CacheT = scudo::MapAllocatorCache<CacheConfig, testUnmapCallback>; 281 std::unique_ptr<CacheT> Cache = std::make_unique<CacheT>();
|
H A D | combined_test.cpp | 209 using CacheT = scudo::MapAllocatorNoCache<Config>; typedef 726 using CacheT = scudo::MapAllocatorNoCache<Config>; in TEST() 705 using CacheT = scudo::MapAllocatorNoCache<Config>; global() typedef
|
/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | quarantine.h | 173 typedef QuarantineCache<Callback> CacheT; typedef 201 void put(CacheT *C, Callback Cb, Node *Ptr, uptr Size) { in put() 207 void NOINLINE drain(CacheT *C, Callback Cb) EXCLUDES(CacheMutex) { in drain() 219 void NOINLINE drainAndRecycle(CacheT *C, Callback Cb) EXCLUDES(CacheMutex) { in drainAndRecycle() 250 CacheT Cache GUARDED_BY(CacheMutex); 258 CacheT Tmp; in recycle() 288 void NOINLINE doRecycle(CacheT *C, Callback Cb) { in doRecycle()
|
H A D | allocator_config.h | 86 template <typename Config> using CacheT = MapAllocatorCache<Config>; member 131 template <typename Config> using CacheT = MapAllocatorCache<Config>; member 164 template <typename Config> using CacheT = MapAllocatorNoCache<Config>; member 188 template <typename Config> using CacheT = MapAllocatorNoCache<Config>; member
|
H A D | tsd.h | 75 typename Allocator::CacheT &getCache() REQUIRES(Mutex) { return Cache; } in getCache() 84 typename Allocator::CacheT Cache GUARDED_BY(Mutex);
|
H A D | primary32.h | 55 typedef SizeClassAllocatorLocalCache<ThisT> CacheT; typedef 194 u16 popBlocks(CacheT *C, uptr ClassId, CompactPtrT *ToArray, in isLargeBlock() 212 void pushBlocks(CacheT *C, uptr ClassId, CompactPtrT *Array, u32 Size) { in popBlocks() 533 CacheT::getMaxCached(getSizeByClassId(SizeClassMap::BatchClassId)); in pushBatchClassBlocks() 600 void pushBlocksImpl(CacheT *C, uptr ClassId, SizeClassInfo *Sci, 707 u16 popBlocksImpl(CacheT *C, uptr ClassId, SizeClassInfo *Sci, 733 // `CacheT::getMaxCached()` may also impact the time spent on accessing the in popBlocksImpl() 737 // `CacheT::getMaxCached()`. in popBlocksImpl() 777 NOINLINE bool populateFreeList(CacheT *C, uptr ClassId, SizeClassInfo *Sci) in popBlocksImpl() 800 const u16 MaxCount = CacheT in populateFreeList() [all...] |
H A D | primary64.h | 60 typedef SizeClassAllocatorLocalCache<ThisT> CacheT; typedef 218 u16 popBlocks(CacheT *C, uptr ClassId, CompactPtrT *ToArray, in popBlocks() 273 void pushBlocks(CacheT *C, uptr ClassId, CompactPtrT *Array, u32 Size) { in pushBlocks() 701 CacheT::getMaxCached(getSizeByClassId(SizeClassMap::BatchClassId)); in pushBatchClassBlocks() 767 void pushBlocksImpl(CacheT *C, uptr ClassId, RegionInfo *Region, 874 u16 popBlocksWithCV(CacheT *C, uptr ClassId, RegionInfo *Region, in popBlocksWithCV() 949 u16 popBlocksImpl(CacheT *C, uptr ClassId, RegionInfo *Region, in popBlocksImpl() 975 // `CacheT::getMaxCached()` may also impact the time spent on accessing the in popBlocksImpl() 979 // `CacheT::getMaxCached()`. in popBlocksImpl() 1020 NOINLINE u16 populateFreeListAndPopBlocks(CacheT * in populateFreeListAndPopBlocks() [all...] |
H A D | combined.h | 57 using CacheT = typename PrimaryT::CacheT; variable 66 explicit QuarantineCallback(ThisT &Instance, CacheT &LocalCache) in QuarantineCallback() 136 CacheT &Cache; 140 typedef typename QuarantineT::CacheT QuarantineCacheT; 266 void initCache(CacheT *Cache) { Cache->init(&Stats, &Primary); }
|
H A D | allocator_config.def | 110 SECONDARY_REQUIRED_TEMPLATE_TYPE(CacheT)
|
H A D | secondary.h | 655 typename Config::template CacheT<typename Config::CacheConfig> Cache; in allocate()
|