Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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;
/llvm-project-15.0.7/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
/llvm-project-15.0.7/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()
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 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()
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 Dhwasan_allocator.h75 typedef Allocator::AllocatorCache AllocatorCache; typedef
77 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
H A Dhwasan_thread.h55 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache()
88 AllocatorCache allocator_cache_;
H A Dhwasan_allocator.cpp28 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 Dsanitizer_allocator_test.cpp218 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 Dsanitizer_allocator_testlib.cpp53 typedef Allocator::AllocatorCache AllocatorCache; typedef
57 static THREADLOCAL AllocatorCache cache;
/llvm-project-15.0.7/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.h97 using AllocatorCache = Allocator::AllocatorCache; variable
99 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.cpp121 end - params->allocator_caches[i] <= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld()
125 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.cpp145 *end = *begin + sizeof(AllocatorCache); in GetAllocatorCacheRange()
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_allocator.h69 using AllocatorCache = MemprofAllocator::AllocatorCache; variable
72 AllocatorCache allocator_cache;
H A Dmemprof_allocator.cpp204 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 Dasan_allocator.h195 using AllocatorCache = AsanAllocator::AllocatorCache; variable
199 AllocatorCache allocator_cache;
H A Dasan_allocator.cpp194 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 Dtsan_rtl.h90 typedef Allocator::AllocatorCache AllocatorCache; typedef
115 AllocatorCache alloc_cache;
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_rtl.h89 typedef Allocator::AllocatorCache AllocatorCache; typedef
114 AllocatorCache alloc_cache;