Home
last modified time | relevance | path

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

/freebsd/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()
155 void InitCache(AllocatorCache *cache) { in InitCache()
159 void DestroyCache(AllocatorCache *cache) { in DestroyCache()
163 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()
316 bool PopulateBatches(AllocatorCache *c, SizeClassInfo *sci, uptr class_id, in PopulateBatches()
341 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/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp60 typedef Allocator::AllocatorCache AllocatorCache; typedef
63 static AllocatorCache fallback_allocator_cache;
78 AllocatorCache *GetAllocatorCache(DFsanThreadLocalMallocStorage *ms) { in GetAllocatorCache()
80 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache()
81 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache()
107 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in DFsanAllocate()
111 AllocatorCache *cache = &fallback_allocator_cache; in DFsanAllocate()
142 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in dfsan_deallocate()
146 AllocatorCache *cache = &fallback_allocator_cache; in dfsan_deallocate()
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp147 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 Dhwasan_allocator.h93 typedef Allocator::AllocatorCache AllocatorCache; typedef
95 void AllocatorThreadStart(AllocatorCache *cache);
96 void AllocatorThreadFinish(AllocatorCache *cache);
H A Dhwasan_thread.h56 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache()
93 AllocatorCache allocator_cache_;
H A Dhwasan_allocator.cpp29 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()
371 AllocatorCache *cache = &fallback_allocator_cache; in HwasanDeallocate()
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_linux.cpp26 static THREADLOCAL AllocatorCache allocator_cache;
27 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
H A Dlsan_allocator.h120 using AllocatorCache = Allocator::AllocatorCache; variable
122 Allocator::AllocatorCache *GetAllocatorCache();
H A Dlsan_common_mac.cpp56 AllocatorCache cache;
82 ptr->cache = AllocatorCache(); in get_tls_val()
113 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
H A Dlsan_common_fuchsia.cpp123 end - params->allocator_caches[i] >= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld()
127 uptr begin2 = params->allocator_caches[i] + sizeof(AllocatorCache); in LockStuffAndStopTheWorld()
H A Dlsan_fuchsia.cpp58 CHECK_EQ(args.cache_end - args.cache_begin, sizeof(AllocatorCache)); in ThreadStart()
H A Dlsan_allocator.cpp148 *end = *begin + sizeof(AllocatorCache); in GetAllocatorCacheRange()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.h73 using AllocatorCache = MemprofAllocator::AllocatorCache; variable
76 AllocatorCache allocator_cache;
H A Dmemprof_allocator.cpp204 AllocatorCache *GetAllocatorCache(MemprofThreadLocalMallocStorage *ms) { in GetAllocatorCache()
254 AllocatorCache fallback_allocator_cache;
384 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate()
388 AllocatorCache *cache = &fallback_allocator_cache; in Allocate()
475 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Deallocate()
479 AllocatorCache *cache = &fallback_allocator_cache; in Deallocate()
520 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.h259 using AllocatorCache = AsanAllocator::AllocatorCache; variable
263 AllocatorCache allocator_cache;
H A Dasan_allocator.cpp211 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()
795 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl.h91 typedef Allocator::AllocatorCache AllocatorCache; typedef
116 AllocatorCache alloc_cache;