Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/scudo/
H A Dscudo_allocator_combined.h22 template <class PrimaryAllocator, class AllocatorCache,
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()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_combined.h23 template <class PrimaryAllocator, class AllocatorCache,
48 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { in Allocate()
93 void Deallocate(AllocatorCache *cache, void *p) { in Deallocate()
101 void *Reallocate(AllocatorCache *cache, void *p, uptr new_size, in Reallocate()
161 void InitCache(AllocatorCache *cache) { in InitCache()
165 void DestroyCache(AllocatorCache *cache) { in DestroyCache()
169 void SwallowCache(AllocatorCache *cache) { in SwallowCache()
H A Dsanitizer_allocator_primary32.h113 typedef SizeClassAllocator32LocalCache<ThisT> AllocatorCache; typedef
159 NOINLINE TransferBatch *AllocateBatch(AllocatorStats *stat, AllocatorCache *c, in AllocateBatch()
304 bool PopulateBatches(AllocatorCache *c, SizeClassInfo *sci, uptr class_id, in PopulateBatches()
329 bool PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, in PopulateFreeList()
H A Dsanitizer_allocator_local_cache.h22 : SizeClassAllocator::AllocatorCache {};
H A Dsanitizer_allocator_primary64.h60 typedef SizeClassAllocator64LocalCache<ThisT> AllocatorCache; typedef
/freebsd-12.1/contrib/compiler-rt/lib/msan/
H A Dmsan_allocator.cc120 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef
122 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
126 static AllocatorCache fallback_allocator_cache;
134 AllocatorCache *GetAllocatorCache(MsanThreadLocalMallocStorage *ms) { in GetAllocatorCache()
136 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache()
137 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache()
156 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanAllocate()
160 AllocatorCache *cache = &fallback_allocator_cache; in MsanAllocate()
204 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanDeallocate()
208 AllocatorCache *cache = &fallback_allocator_cache; in MsanDeallocate()
/freebsd-12.1/contrib/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.h65 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; in DECLARE_REAL() typedef
67 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, in DECLARE_REAL()
70 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache); in DECLARE_REAL()
H A Dhwasan_thread.h53 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache()
87 AllocatorCache allocator_cache_;
H A Dhwasan_allocator.cc32 static AllocatorCache fallback_allocator_cache;
125 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache) { in AllocatorSwallowThreadLocalCache()
155 AllocatorCache *cache = &fallback_allocator_cache; in HwasanAllocate()
256 AllocatorCache *cache = &fallback_allocator_cache; in HwasanDeallocate()
/freebsd-12.1/contrib/compiler-rt/lib/lsan/
H A Dlsan_linux.cc26 static THREADLOCAL AllocatorCache allocator_cache;
27 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
H A Dlsan_common_mac.cc40 AllocatorCache cache;
66 ptr->cache = AllocatorCache(); in get_tls_val()
95 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
H A Dlsan_allocator.h103 using AllocatorCache = AllocatorCacheASVT<LocalAddressSpaceView>; variable
117 AllocatorCache *GetAllocatorCache();
H A Dlsan_allocator.cc132 *end = *begin + sizeof(AllocatorCache); in GetAllocatorCacheRange()
/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_allocator.cc137 QuarantineCallback(AllocatorCache *cache, BufferedStackTrace *stack) in QuarantineCallback()
181 AllocatorCache* const cache_;
209 AllocatorCache *GetAllocatorCache(AsanThreadLocalMallocStorage *ms) { in GetAllocatorCache()
247 AllocatorCache fallback_allocator_cache;
452 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate()
456 AllocatorCache *cache = &fallback_allocator_cache; in Allocate()
599 AllocatorCache *ac = GetAllocatorCache(ms); in QuarantineChunk()
604 AllocatorCache *ac = &fallback_allocator_cache; in QuarantineChunk()
698 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
H A Dasan_allocator.h198 using AllocatorCache = AllocatorCacheASVT<LocalAddressSpaceView>; variable
213 AllocatorCache allocator_cache;
/freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl.h88 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef
90 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
354 AllocatorCache alloc_cache;