| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator_combined.h | 25 using AllocatorCache = typename PrimaryAllocator::AllocatorCache; variable 34 void *allocatePrimary(AllocatorCache *Cache, uptr ClassId) { in allocatePrimary() 44 void deallocatePrimary(AllocatorCache *Cache, void *Ptr, uptr ClassId) { in deallocatePrimary() 52 void initCache(AllocatorCache *Cache) { in initCache() 56 void destroyCache(AllocatorCache *Cache) { in destroyCache()
|
| H A D | scudo_allocator.h | 109 typedef CombinedAllocator::AllocatorCache AllocatorCacheT;
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_combined.h | 26 using AllocatorCache = typename PrimaryAllocator::AllocatorCache; 44 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { in Allocate() 89 void Deallocate(AllocatorCache *cache, void *p) { in Deallocate() 97 void *Reallocate(AllocatorCache *cache, void *p, uptr new_size, in Reallocate() 155 void InitCache(AllocatorCache *cache) { in InitCache() 159 void DestroyCache(AllocatorCache *cache) { in DestroyCache() 163 void SwallowCache(AllocatorCache *cache) { in SwallowCache()
|
| H A D | sanitizer_allocator_primary32.h | 120 typedef SizeClassAllocator32LocalCache<ThisT> AllocatorCache; typedef 168 NOINLINE TransferBatch *AllocateBatch(AllocatorStats *stat, AllocatorCache *c, in AllocateBatch() 316 bool PopulateBatches(AllocatorCache *c, SizeClassInfo *sci, uptr class_id, in PopulateBatches() 341 bool PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, in PopulateFreeList()
|
| H A D | sanitizer_allocator_internal.h | 40 typedef InternalAllocator::AllocatorCache InternalAllocatorCache;
|
| H A D | sanitizer_allocator_primary64.h | 97 typedef SizeClassAllocator64LocalCache<ThisT> AllocatorCache; typedef
|
| /llvm-project-15.0.7/compiler-rt/lib/dfsan/ |
| H A D | dfsan_allocator.cpp | 52 typedef Allocator::AllocatorCache AllocatorCache; typedef 55 static AllocatorCache fallback_allocator_cache; 70 AllocatorCache *GetAllocatorCache(DFsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 72 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache() 73 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache() 99 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in DFsanAllocate() 103 AllocatorCache *cache = &fallback_allocator_cache; in DFsanAllocate() 134 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in dfsan_deallocate() 138 AllocatorCache *cache = &fallback_allocator_cache; in dfsan_deallocate()
|
| /llvm-project-15.0.7/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 126 typedef Allocator::AllocatorCache AllocatorCache; typedef 129 static AllocatorCache fallback_allocator_cache; 144 AllocatorCache *GetAllocatorCache(MsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 146 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache() 147 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache() 171 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanAllocate() 175 AllocatorCache *cache = &fallback_allocator_cache; in MsanAllocate() 222 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanDeallocate() 226 AllocatorCache *cache = &fallback_allocator_cache; in MsanDeallocate()
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.h | 75 typedef Allocator::AllocatorCache AllocatorCache; typedef 77 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
|
| H A D | hwasan_thread.h | 55 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache() 88 AllocatorCache allocator_cache_;
|
| H A D | hwasan_allocator.cpp | 28 static AllocatorCache fallback_allocator_cache; 114 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache) { in AllocatorSwallowThreadLocalCache() 149 AllocatorCache *cache = &fallback_allocator_cache; in HwasanAllocate() 305 AllocatorCache *cache = &fallback_allocator_cache; in HwasanDeallocate()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_allocator_test.cpp | 218 typename Allocator::AllocatorCache cache; in TestSizeClassAllocator() 367 typename Allocator::AllocatorCache cache; in SizeClassAllocatorMetadataStress() 579 Allocator64::AllocatorCache cache; in TEST() 779 using AllocatorCache = typename Allocator::AllocatorCache; in TestSizeClassAllocatorLocalCache() typedef 780 AllocatorCache cache; in TestSizeClassAllocatorLocalCache() 844 typedef Allocator64::AllocatorCache AllocatorCache; typedef 875 AllocatorCache *thread_cache; 876 AllocatorCache::Allocator *allocator; 890 AllocatorCache::Allocator allocator; in TEST() 892 AllocatorCache main_cache; in TEST() [all …]
|
| H A D | sanitizer_allocator_testlib.cpp | 53 typedef Allocator::AllocatorCache AllocatorCache; typedef 57 static THREADLOCAL AllocatorCache cache;
|
| /llvm-project-15.0.7/compiler-rt/lib/lsan/ |
| H A D | lsan_linux.cpp | 25 static THREADLOCAL AllocatorCache allocator_cache; 26 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
|
| H A D | lsan_allocator.h | 97 using AllocatorCache = Allocator::AllocatorCache; variable 99 Allocator::AllocatorCache *GetAllocatorCache();
|
| H A D | lsan_common_mac.cpp | 39 AllocatorCache cache; 65 ptr->cache = AllocatorCache(); in get_tls_val() 94 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
|
| H A D | lsan_common_fuchsia.cpp | 121 end - params->allocator_caches[i] <= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld() 125 uptr begin2 = params->allocator_caches[i] + sizeof(AllocatorCache); in LockStuffAndStopTheWorld()
|
| H A D | lsan_fuchsia.cpp | 57 CHECK_EQ(args.cache_end - args.cache_begin, sizeof(AllocatorCache)); in ThreadStart()
|
| H A D | lsan_allocator.cpp | 145 *end = *begin + sizeof(AllocatorCache); in GetAllocatorCacheRange()
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.h | 69 using AllocatorCache = MemprofAllocator::AllocatorCache; variable 72 AllocatorCache allocator_cache;
|
| H A D | memprof_allocator.cpp | 204 AllocatorCache *GetAllocatorCache(MemprofThreadLocalMallocStorage *ms) { in GetAllocatorCache() 254 AllocatorCache fallback_allocator_cache; 382 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate() 386 AllocatorCache *cache = &fallback_allocator_cache; in Allocate() 474 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Deallocate() 478 AllocatorCache *cache = &fallback_allocator_cache; in Deallocate() 519 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_allocator.h | 195 using AllocatorCache = AsanAllocator::AllocatorCache; variable 199 AllocatorCache allocator_cache;
|
| H A D | asan_allocator.cpp | 194 QuarantineCallback(AllocatorCache *cache, BufferedStackTrace *stack) in QuarantineCallback() 237 AllocatorCache* const cache_; 265 AllocatorCache *GetAllocatorCache(AsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 303 AllocatorCache fallback_allocator_cache; 525 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate() 529 AllocatorCache *cache = &fallback_allocator_cache; in Allocate() 653 AllocatorCache *ac = GetAllocatorCache(ms); in QuarantineChunk() 658 AllocatorCache *ac = &fallback_allocator_cache; in QuarantineChunk() 752 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_rtl.h | 90 typedef Allocator::AllocatorCache AllocatorCache; typedef 115 AllocatorCache alloc_cache;
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_rtl.h | 89 typedef Allocator::AllocatorCache AllocatorCache; typedef 114 AllocatorCache alloc_cache;
|