Home
last modified time | relevance | path

Searched refs:AllocatorCache (Results 1 – 22 of 22) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator_combined.h25 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 Dscudo_allocator.h109 typedef CombinedAllocator::AllocatorCache AllocatorCacheT;
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_combined.h26 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()
157 void InitCache(AllocatorCache *cache) { in InitCache()
161 void DestroyCache(AllocatorCache *cache) { in DestroyCache()
165 void SwallowCache(AllocatorCache *cache) { in SwallowCache()
H A Dsanitizer_allocator_primary32.h120 typedef SizeClassAllocator32LocalCache<ThisT> AllocatorCache; typedef
168 NOINLINE TransferBatch *AllocateBatch(AllocatorStats *stat, AllocatorCache *c, in AllocateBatch()
317 bool PopulateBatches(AllocatorCache *c, SizeClassInfo *sci, uptr class_id, in PopulateBatches()
342 bool PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, in PopulateFreeList()
H A Dsanitizer_allocator_internal.h40 typedef InternalAllocator::AllocatorCache InternalAllocatorCache;
H A Dsanitizer_allocator_primary64.h97 typedef SizeClassAllocator64LocalCache<ThisT> AllocatorCache; typedef
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp52 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()
93 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in DFsanAllocate()
97 AllocatorCache *cache = &fallback_allocator_cache; in DFsanAllocate()
128 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in dfsan_deallocate()
132 AllocatorCache *cache = &fallback_allocator_cache; in dfsan_deallocate()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp126 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()
166 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanAllocate()
170 AllocatorCache *cache = &fallback_allocator_cache; in MsanAllocate()
214 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanDeallocate()
218 AllocatorCache *cache = &fallback_allocator_cache; in MsanDeallocate()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.h75 typedef Allocator::AllocatorCache AllocatorCache; typedef
77 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
H A Dhwasan_thread.h50 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache()
82 AllocatorCache allocator_cache_;
H A Dhwasan_allocator.cpp28 static AllocatorCache fallback_allocator_cache;
110 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache) { in AllocatorSwallowThreadLocalCache()
140 AllocatorCache *cache = &fallback_allocator_cache; in HwasanAllocate()
274 AllocatorCache *cache = &fallback_allocator_cache; in HwasanDeallocate()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_linux.cpp25 static THREADLOCAL AllocatorCache allocator_cache;
26 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
H A Dlsan_allocator.h101 using AllocatorCache = Allocator::AllocatorCache; variable
103 Allocator::AllocatorCache *GetAllocatorCache();
H A Dlsan_common_mac.cpp39 AllocatorCache cache;
65 ptr->cache = AllocatorCache(); in get_tls_val()
94 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
H A Dlsan_common_fuchsia.cpp113 end - params->allocator_caches[i] <= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld()
117 uptr begin2 = params->allocator_caches[i] + sizeof(AllocatorCache); in LockStuffAndStopTheWorld()
H A Dlsan_fuchsia.cpp57 CHECK_EQ(args.cache_end - args.cache_begin, sizeof(AllocatorCache)); in ThreadStart()
H A Dlsan_allocator.cpp142 *end = *begin + sizeof(AllocatorCache); in GetAllocatorCacheRange()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.h69 using AllocatorCache = MemprofAllocator::AllocatorCache; variable
72 AllocatorCache allocator_cache;
H A Dmemprof_allocator.cpp164 AllocatorCache *GetAllocatorCache(MemprofThreadLocalMallocStorage *ms) { in GetAllocatorCache()
452 AllocatorCache fallback_allocator_cache;
556 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate()
560 AllocatorCache *cache = &fallback_allocator_cache; in Allocate()
650 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Deallocate()
654 AllocatorCache *cache = &fallback_allocator_cache; in Deallocate()
695 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.h197 using AllocatorCache = AsanAllocator::AllocatorCache; variable
201 AllocatorCache allocator_cache;
H A Dasan_allocator.cpp195 QuarantineCallback(AllocatorCache *cache, BufferedStackTrace *stack) in QuarantineCallback()
239 AllocatorCache* const cache_;
267 AllocatorCache *GetAllocatorCache(AsanThreadLocalMallocStorage *ms) { in GetAllocatorCache()
305 AllocatorCache fallback_allocator_cache;
536 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate()
540 AllocatorCache *cache = &fallback_allocator_cache; in Allocate()
665 AllocatorCache *ac = GetAllocatorCache(ms); in QuarantineChunk()
670 AllocatorCache *ac = &fallback_allocator_cache; in QuarantineChunk()
764 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl.h83 typedef Allocator::AllocatorCache AllocatorCache; typedef
342 AllocatorCache alloc_cache;