Home
last modified time | relevance | path

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

12

/external/llvm-project/compiler-rt/lib/scudo/
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()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
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()
Dsanitizer_allocator_primary32.h120 typedef SizeClassAllocator32LocalCache<ThisT> AllocatorCache; typedef
167 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()
/external/compiler-rt/lib/msan/
Dmsan_allocator.cc87 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef
89 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
93 static AllocatorCache fallback_allocator_cache;
100 AllocatorCache *GetAllocatorCache(MsanThreadLocalMallocStorage *ms) { in GetAllocatorCache()
102 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache()
103 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache()
120 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanAllocate()
124 AllocatorCache *cache = &fallback_allocator_cache; in MsanAllocate()
162 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanDeallocate()
166 AllocatorCache *cache = &fallback_allocator_cache; in MsanDeallocate()
/external/llvm-project/compiler-rt/lib/msan/
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()
/external/llvm-project/compiler-rt/lib/hwasan/
Dhwasan_allocator.h67 typedef Allocator::AllocatorCache AllocatorCache; typedef
69 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
Dhwasan_thread.h41 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache()
73 AllocatorCache allocator_cache_;
Dhwasan_allocator.cpp28 static AllocatorCache fallback_allocator_cache;
92 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache) { in AllocatorSwallowThreadLocalCache()
122 AllocatorCache *cache = &fallback_allocator_cache; in HwasanAllocate()
233 AllocatorCache *cache = &fallback_allocator_cache; in HwasanDeallocate()
/external/llvm-project/compiler-rt/lib/lsan/
Dlsan_linux.cpp25 static THREADLOCAL AllocatorCache allocator_cache;
26 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
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()
Dlsan_allocator.h101 using AllocatorCache = Allocator::AllocatorCache; variable
103 Allocator::AllocatorCache *GetAllocatorCache();
Dlsan_common_fuchsia.cpp115 end - params->allocator_caches[i] <= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld()
119 uptr begin2 = params->allocator_caches[i] + sizeof(AllocatorCache); in LockStuffAndStopTheWorld()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cc421 <class PrimaryAllocator, class SecondaryAllocator, class AllocatorCache>
424 CombinedAllocator<PrimaryAllocator, AllocatorCache, SecondaryAllocator> in TestCombinedAllocator()
429 AllocatorCache cache; in TestCombinedAllocator()
496 template <class AllocatorCache>
498 AllocatorCache cache; in TestSizeClassAllocatorLocalCache()
499 typedef typename AllocatorCache::Allocator Allocator; in TestSizeClassAllocatorLocalCache()
548 typedef SizeClassAllocatorLocalCache<Allocator64> AllocatorCache; typedef
549 static AllocatorCache static_allocator_cache;
552 typedef AllocatorCache::Allocator Allocator; in AllocatorLeakTestWorker()
560 typedef AllocatorCache::Allocator Allocator; in TEST()
[all …]
Dsanitizer_allocator_testlib.cc43 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef
45 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
50 static THREADLOCAL AllocatorCache cache;
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cpp202 typename Allocator::AllocatorCache cache; in TestSizeClassAllocator()
326 typename Allocator::AllocatorCache cache; in SizeClassAllocatorMetadataStress()
380 typename Allocator::AllocatorCache cache; in SizeClassAllocatorGetBlockBeginStress()
457 typename Allocator64WithCallBack::AllocatorCache cache; in TEST()
493 Allocator32WithCallBack::AllocatorCache cache; in TEST()
527 Allocator64::AllocatorCache cache; in TEST()
633 typename Allocator::AllocatorCache cache; in TestCombinedAllocator()
718 using AllocatorCache = typename Allocator::AllocatorCache; in TestSizeClassAllocatorLocalCache() typedef
719 AllocatorCache cache; in TestSizeClassAllocatorLocalCache()
778 typedef Allocator64::AllocatorCache AllocatorCache; typedef
[all …]
Dsanitizer_allocator_testlib.cpp53 typedef Allocator::AllocatorCache AllocatorCache; typedef
57 static THREADLOCAL AllocatorCache cache;
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_allocator.h69 using AllocatorCache = MemprofAllocator::AllocatorCache; variable
73 AllocatorCache allocator_cache;
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()
/external/compiler-rt/lib/asan/
Dasan_allocator.h148 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef
150 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
156 AllocatorCache allocator_cache;
Dasan_allocator.cc132 explicit QuarantineCallback(AllocatorCache *cache) in QuarantineCallback()
170 AllocatorCache *cache_;
197 AllocatorCache *GetAllocatorCache(AsanThreadLocalMallocStorage *ms) { in GetAllocatorCache()
233 AllocatorCache fallback_allocator_cache;
366 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate()
371 AllocatorCache *cache = &fallback_allocator_cache; in Allocate()
500 AllocatorCache *ac = GetAllocatorCache(ms); in QuarantineChunk()
505 AllocatorCache *ac = &fallback_allocator_cache; in QuarantineChunk()
583 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp40 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef
42 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, SecondaryAllocator>
161 static thread_local AllocatorCache Cache;
206 explicit QuarantineCallback(AllocatorCache *Cache) in QuarantineCallback()
239 AllocatorCache *Cache_;
276 AllocatorCache FallbackAllocatorCache;
/external/llvm-project/compiler-rt/lib/asan/
Dasan_allocator.h197 using AllocatorCache = AsanAllocator::AllocatorCache; variable
201 AllocatorCache allocator_cache;
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()
/external/compiler-rt/lib/lsan/
Dlsan_allocator.cc51 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef
53 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache,
57 static THREADLOCAL AllocatorCache cache;
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.h323 typedef SizeClassAllocatorLocalCache<ThisT> AllocatorCache; typedef
353 NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c, in AllocateBatch()
538 NOINLINE Batch* PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, in PopulateFreeList()
716 typedef SizeClassAllocatorLocalCache<ThisT> AllocatorCache; typedef
751 NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c, in AllocateBatch()
894 void PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, in PopulateFreeList()
1289 template <class PrimaryAllocator, class AllocatorCache,
1310 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment,
1358 void Deallocate(AllocatorCache *cache, void *p) { in Deallocate()
1366 void *Reallocate(AllocatorCache *cache, void *p, uptr new_size, in Reallocate()
[all …]

12