Home
last modified time | relevance | path

Searched refs:SizeClassMap (Results 1 – 4 of 4) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.h91 class SizeClassMap {
195 typedef SizeClassMap<17, 128, 16> DefaultSizeClassMap;
196 typedef SizeClassMap<17, 64, 14> CompactSizeClassMap;
311 const uptr kMetadataSize, class SizeClassMap,
315 typedef typename SizeClassMap::TransferBatch Batch;
317 SizeClassMap, MapUnmapCallback> ThisT;
337 return size <= SizeClassMap::kMaxSize && in CanAllocate()
338 alignment <= SizeClassMap::kMaxSize; in CanAllocate()
369 uptr size = SizeClassMap::Size(class_id); in GetBlockBegin()
384 return SizeClassMap::Size(GetSizeClass(p)); in GetActuallyAllocatedSize()
[all …]
/external/compiler-rt/lib/asan/
Dasan_allocator.h109 typedef DefaultSizeClassMap SizeClassMap; typedef
111 SizeClassMap, AsanMapUnmapCallback> PrimaryAllocator;
120 typedef CompactSizeClassMap SizeClassMap; typedef
122 SizeClassMap, kRegionSizeLog,
Dasan_allocator2.cc157 if (user_requested_size != SizeClassMap::kMaxSize) in UsedSize()
369 m->user_requested_size = SizeClassMap::kMaxSize; in Allocate()
391 uptr class_id = Min(kNumberOfSizeClasses, SizeClassMap::ClassID(needed_size)); in Allocate()
393 if (needed_size > SizeClassMap::kMaxSize) in Allocate()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cc57 template <class SizeClassMap>
59 typedef SizeClassMap SCMap; in TestSizeClassMap()
776 typedef SizeClassMap<63, 128, 16> SpecialSizeClassMap; in TEST()