/freebsd/contrib/llvm-project/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
|
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_allocator.cpp | 63 typedef Allocator::AllocatorCache AllocatorCache; typedef 66 static AllocatorCache fallback_allocator_cache; 81 AllocatorCache *GetAllocatorCache(DFsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 83 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache() 84 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache() 110 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in DFsanAllocate() 114 AllocatorCache *cache = &fallback_allocator_cache; in DFsanAllocate() 145 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in dfsan_deallocate() 149 AllocatorCache *cache = &fallback_allocator_cache; in dfsan_deallocate()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_allocator.cpp | 147 typedef Allocator::AllocatorCache AllocatorCache; typedef 150 static AllocatorCache fallback_allocator_cache; 169 AllocatorCache *GetAllocatorCache(MsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 171 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache() 172 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache() 203 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanAllocate() 207 AllocatorCache *cache = &fallback_allocator_cache; in MsanAllocate() 259 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanDeallocate() 263 AllocatorCache *cache = &fallback_allocator_cache; in MsanDeallocate()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_allocator.h | 93 typedef Allocator::AllocatorCache AllocatorCache; typedef 95 void AllocatorThreadStart(AllocatorCache *cache); 96 void AllocatorThreadFinish(AllocatorCache *cache);
|
H A D | hwasan_thread.h | 56 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache() 93 AllocatorCache allocator_cache_;
|
H A D | hwasan_allocator.cpp | 29 static AllocatorCache fallback_allocator_cache; 169 void AllocatorThreadStart(AllocatorCache *cache) { allocator.InitCache(cache); } in AllocatorThreadStart() 171 void AllocatorThreadFinish(AllocatorCache *cache) { in AllocatorThreadFinish() 210 AllocatorCache *cache = &fallback_allocator_cache; in HwasanAllocate() 372 AllocatorCache *cache = &fallback_allocator_cache; in HwasanDeallocate()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_linux.cpp | 26 static THREADLOCAL AllocatorCache allocator_cache; 27 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
|
H A D | lsan_allocator.h | 120 using AllocatorCache = Allocator::AllocatorCache; 122 Allocator::AllocatorCache *GetAllocatorCache(); 98 using AllocatorCache = Allocator::AllocatorCache; global() variable
|
H A D | lsan_common_mac.cpp | 56 AllocatorCache cache; 82 ptr->cache = AllocatorCache(); in get_tls_val() 113 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
|
H A D | lsan_common_fuchsia.cpp | 123 end - params->allocator_caches[i] >= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld() 127 uptr begin2 = params->allocator_caches[i] + sizeof(AllocatorCache); in LockStuffAndStopTheWorld()
|
H A D | lsan_fuchsia.cpp | 58 CHECK_EQ(args.cache_end - args.cache_begin, sizeof(AllocatorCache)); in ThreadStart()
|
H A D | lsan_allocator.cpp | 148 *end = *begin + sizeof(AllocatorCache); in GetAllocatorCacheRange()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_allocator.h | 73 using AllocatorCache = MemprofAllocator::AllocatorCache; variable 76 AllocatorCache allocator_cache;
|
H A D | memprof_allocator.cpp | 216 AllocatorCache *GetAllocatorCache(MemprofThreadLocalMallocStorage *ms) { in GetAllocatorCache() 285 AllocatorCache fallback_allocator_cache; 450 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate() 454 AllocatorCache *cache = &fallback_allocator_cache; in Allocate() 537 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Deallocate() 541 AllocatorCache *cache = &fallback_allocator_cache; in Deallocate() 581 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_allocator.cpp | 211 QuarantineCallback(AllocatorCache *cache, BufferedStackTrace *stack) in QuarantineCallback() 275 AllocatorCache* const cache_; 319 AllocatorCache *GetAllocatorCache(AsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 357 AllocatorCache fallback_allocator_cache; 581 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate() 585 AllocatorCache *cache = &fallback_allocator_cache; in Allocate() 692 AllocatorCache *ac = GetAllocatorCache(ms); in QuarantineChunk() 697 AllocatorCache *ac = &fallback_allocator_cache; in QuarantineChunk() 803 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl.h | 91 typedef Allocator::AllocatorCache AllocatorCache; typedef 116 AllocatorCache alloc_cache;
|