/external/llvm-project/compiler-rt/lib/scudo/ |
D | scudo_allocator_combined.h | 25 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/ |
D | sanitizer_allocator_combined.h | 26 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()
|
D | sanitizer_allocator_primary32.h | 120 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/ |
D | msan_allocator.cc | 87 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/ |
D | msan_allocator.cpp | 126 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/ |
D | hwasan_allocator.h | 67 typedef Allocator::AllocatorCache AllocatorCache; typedef 69 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
|
D | hwasan_thread.h | 41 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache() 73 AllocatorCache allocator_cache_;
|
D | hwasan_allocator.cpp | 28 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/ |
D | lsan_linux.cpp | 25 static THREADLOCAL AllocatorCache allocator_cache; 26 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
|
D | lsan_common_mac.cpp | 39 AllocatorCache cache; 65 ptr->cache = AllocatorCache(); in get_tls_val() 94 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
|
D | lsan_allocator.h | 101 using AllocatorCache = Allocator::AllocatorCache; variable 103 Allocator::AllocatorCache *GetAllocatorCache();
|
D | lsan_common_fuchsia.cpp | 115 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/ |
D | sanitizer_allocator_test.cc | 421 <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 …]
|
D | sanitizer_allocator_testlib.cc | 43 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef 45 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, 50 static THREADLOCAL AllocatorCache cache;
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cpp | 202 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 …]
|
D | sanitizer_allocator_testlib.cpp | 53 typedef Allocator::AllocatorCache AllocatorCache; typedef 57 static THREADLOCAL AllocatorCache cache;
|
/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_allocator.h | 69 using AllocatorCache = MemprofAllocator::AllocatorCache; variable 73 AllocatorCache allocator_cache;
|
D | memprof_allocator.cpp | 164 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/ |
D | asan_allocator.h | 148 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef 150 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, 156 AllocatorCache allocator_cache;
|
D | asan_allocator.cc | 132 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/ |
D | scudo_allocator.cpp | 40 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/ |
D | asan_allocator.h | 197 using AllocatorCache = AsanAllocator::AllocatorCache; variable 201 AllocatorCache allocator_cache;
|
D | asan_allocator.cpp | 195 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/ |
D | lsan_allocator.cc | 51 typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef 53 typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, 57 static THREADLOCAL AllocatorCache cache;
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_allocator.h | 323 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 …]
|