Home
last modified time | relevance | path

Searched refs:SizeClassAllocator (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h17 template <class SizeClassAllocator>
19 typedef SizeClassAllocator Allocator;
34 void *Allocate(SizeClassAllocator *allocator, uptr class_id) { in Allocate()
65 void Drain(SizeClassAllocator *allocator) { in Drain()
99 NOINLINE bool Refill(PerClass *c, SizeClassAllocator *allocator, in Refill()
127 template <class SizeClassAllocator>
129 typedef SizeClassAllocator Allocator;
147 void DestroyBatch(uptr class_id, SizeClassAllocator *allocator, in DestroyBatch()
159 void *Allocate(SizeClassAllocator *allocator, uptr class_id) { in Allocate()
187 void Drain(SizeClassAllocator *allocator) { in Drain()
[all …]
H A Dsanitizer_allocator_primary32.h16 template<class SizeClassAllocator> struct SizeClassAllocator32LocalCache;
H A Dsanitizer_allocator_primary64.h16 template<class SizeClassAllocator> struct SizeClassAllocator64LocalCache;
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dlocal_cache.h18 template <class SizeClassAllocator> struct SizeClassAllocatorLocalCache {
19 typedef typename SizeClassAllocator::SizeClassMap SizeClassMap;
20 typedef typename SizeClassAllocator::CompactPtrT CompactPtrT;
52 void init(GlobalStats *S, SizeClassAllocator *A) { in init()
140 SizeClassAllocator *Allocator = nullptr;
152 const uptr Size = SizeClassAllocator::getSizeByClassId(I); in initCache()
187 reportOutOfMemory(SizeClassAllocator::getSizeByClassId(BatchClassId)); in drain()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dprimary_test.cpp74 struct SizeClassAllocator struct
77 struct SizeClassAllocator<TestConfig1, SizeClassMapT> struct
81 struct TestAllocator : public SizeClassAllocator<BaseConfig, SizeClassMapT> {