| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A 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() 155 void InitCache(AllocatorCache *cache) { in InitCache() 159 void DestroyCache(AllocatorCache *cache) { in DestroyCache() 163 void SwallowCache(AllocatorCache *cache) { in SwallowCache()
|
| H A D | sanitizer_allocator_primary32.h | 120 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 D | sanitizer_allocator_internal.h | 40 typedef InternalAllocator::AllocatorCache InternalAllocatorCache;
|
| H A D | sanitizer_allocator_primary64.h | 97 typedef SizeClassAllocator64LocalCache<ThisT> AllocatorCache; typedef
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/dfsan/ |
| H A D | dfsan_allocator.cpp | 56 typedef Allocator::AllocatorCache AllocatorCache; typedef 59 static AllocatorCache fallback_allocator_cache; 74 AllocatorCache *GetAllocatorCache(DFsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 76 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache() 77 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache() 103 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in DFsanAllocate() 107 AllocatorCache *cache = &fallback_allocator_cache; in DFsanAllocate() 138 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in dfsan_deallocate() 142 AllocatorCache *cache = &fallback_allocator_cache; in dfsan_deallocate()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 124 typedef Allocator::AllocatorCache AllocatorCache; typedef 127 static AllocatorCache fallback_allocator_cache; 142 AllocatorCache *GetAllocatorCache(MsanThreadLocalMallocStorage *ms) { in GetAllocatorCache() 144 CHECK_LE(sizeof(AllocatorCache), sizeof(ms->allocator_cache)); in GetAllocatorCache() 145 return reinterpret_cast<AllocatorCache *>(ms->allocator_cache); in GetAllocatorCache() 169 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanAllocate() 173 AllocatorCache *cache = &fallback_allocator_cache; in MsanAllocate() 220 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in MsanDeallocate() 224 AllocatorCache *cache = &fallback_allocator_cache; in MsanDeallocate()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_allocator_test.cpp | 218 typename Allocator::AllocatorCache cache; in TestSizeClassAllocator() 367 typename Allocator::AllocatorCache cache; in SizeClassAllocatorMetadataStress() 427 typename Allocator::AllocatorCache cache; in SizeClassAllocatorGetBlockBeginStress() 509 typename Allocator64WithCallBack::AllocatorCache cache; in TEST() 545 Allocator32WithCallBack::AllocatorCache cache; in TEST() 579 Allocator64::AllocatorCache cache; in TEST() 686 typename Allocator::AllocatorCache cache; in TestCombinedAllocator() 779 using AllocatorCache = typename Allocator::AllocatorCache; in TestSizeClassAllocatorLocalCache() typedef 780 AllocatorCache cache; in TestSizeClassAllocatorLocalCache() 844 typedef Allocator64::AllocatorCache AllocatorCache; typedef [all …]
|
| H A D | sanitizer_allocator_testlib.cpp | 53 typedef Allocator::AllocatorCache AllocatorCache; typedef 57 static THREADLOCAL AllocatorCache cache;
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.h | 82 typedef Allocator::AllocatorCache AllocatorCache; typedef 84 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
|
| H A D | hwasan_thread.h | 56 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache() 93 AllocatorCache allocator_cache_;
|
| H A D | hwasan_allocator.cpp | 29 static AllocatorCache fallback_allocator_cache; 152 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache) { in AllocatorSwallowThreadLocalCache() 187 AllocatorCache *cache = &fallback_allocator_cache; in HwasanAllocate() 345 AllocatorCache *cache = &fallback_allocator_cache; in HwasanDeallocate()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/lsan/ |
| H A D | lsan_linux.cpp | 25 static THREADLOCAL AllocatorCache allocator_cache; 26 AllocatorCache *GetAllocatorCache() { return &allocator_cache; } in GetAllocatorCache()
|
| H A D | lsan_allocator.h | 97 using AllocatorCache = Allocator::AllocatorCache; variable 99 Allocator::AllocatorCache *GetAllocatorCache();
|
| H A D | lsan_common_mac.cpp | 54 AllocatorCache cache; 80 ptr->cache = AllocatorCache(); in get_tls_val() 109 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
|
| H A D | lsan_common_fuchsia.cpp | 122 end - params->allocator_caches[i] <= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld() 126 uptr begin2 = params->allocator_caches[i] + sizeof(AllocatorCache); in LockStuffAndStopTheWorld()
|
| H A D | lsan_fuchsia.cpp | 57 CHECK_EQ(args.cache_end - args.cache_begin, sizeof(AllocatorCache)); in ThreadStart()
|
| H A D | lsan_allocator.cpp | 145 *end = *begin + sizeof(AllocatorCache); in GetAllocatorCacheRange()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.h | 69 using AllocatorCache = MemprofAllocator::AllocatorCache; variable 72 AllocatorCache allocator_cache;
|
| H A D | memprof_allocator.cpp | 202 AllocatorCache *GetAllocatorCache(MemprofThreadLocalMallocStorage *ms) { in GetAllocatorCache() 252 AllocatorCache fallback_allocator_cache; 380 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Allocate() 384 AllocatorCache *cache = &fallback_allocator_cache; in Allocate() 472 AllocatorCache *cache = GetAllocatorCache(&t->malloc_storage()); in Deallocate() 476 AllocatorCache *cache = &fallback_allocator_cache; in Deallocate() 517 AllocatorCache *ac = GetAllocatorCache(ms); in CommitBack()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/asan/ |
| H A D | asan_allocator.h | 189 using AllocatorCache = AsanAllocator::AllocatorCache; variable 193 AllocatorCache allocator_cache;
|
| H A D | asan_allocator.cpp | 194 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()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_rtl.h | 91 typedef Allocator::AllocatorCache AllocatorCache; typedef 116 AllocatorCache alloc_cache;
|