Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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
/openbsd-src/gnu/llvm/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp56 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 Dmsan_allocator.cpp124 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 Dsanitizer_allocator_test.cpp218 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 Dsanitizer_allocator_testlib.cpp53 typedef Allocator::AllocatorCache AllocatorCache; typedef
57 static THREADLOCAL AllocatorCache cache;
/openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.h82 typedef Allocator::AllocatorCache AllocatorCache; typedef
84 void AllocatorSwallowThreadLocalCache(AllocatorCache *cache);
H A Dhwasan_thread.h56 AllocatorCache *allocator_cache() { return &allocator_cache_; } in allocator_cache()
93 AllocatorCache allocator_cache_;
H A Dhwasan_allocator.cpp29 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 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.cpp54 AllocatorCache cache;
80 ptr->cache = AllocatorCache(); in get_tls_val()
109 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; } in GetAllocatorCache()
H A Dlsan_common_fuchsia.cpp122 end - params->allocator_caches[i] <= sizeof(AllocatorCache)) { in LockStuffAndStopTheWorld()
126 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()
/openbsd-src/gnu/llvm/compiler-rt/lib/memprof/
H A Dmemprof_allocator.h69 using AllocatorCache = MemprofAllocator::AllocatorCache; variable
72 AllocatorCache allocator_cache;
H A Dmemprof_allocator.cpp202 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 Dasan_allocator.h189 using AllocatorCache = AsanAllocator::AllocatorCache; variable
193 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()
/openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl.h91 typedef Allocator::AllocatorCache AllocatorCache; typedef
116 AllocatorCache alloc_cache;