Home
last modified time | relevance | path

Searched refs:SizeClassMap (Results 1 – 6 of 6) 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;
315 const uptr kMetadataSize, class SizeClassMap,
319 typedef typename SizeClassMap::TransferBatch Batch;
321 SizeClassMap, MapUnmapCallback> ThisT;
341 return size <= SizeClassMap::kMaxSize && in CanAllocate()
342 alignment <= SizeClassMap::kMaxSize; in CanAllocate()
373 uptr size = SizeClassMap::Size(class_id); in GetBlockBegin()
388 return SizeClassMap::Size(GetSizeClass(p)); in GetActuallyAllocatedSize()
[all …]
/external/compiler-rt/lib/asan/
Dasan_allocator.h126 typedef DefaultSizeClassMap SizeClassMap; typedef
128 SizeClassMap, AsanMapUnmapCallback> PrimaryAllocator;
137 typedef CompactSizeClassMap SizeClassMap; typedef
139 SizeClassMap, kRegionSizeLog,
144 static const uptr kNumberOfSizeClasses = SizeClassMap::kNumClasses;
Dasan_allocator.cc112 if (user_requested_size != SizeClassMap::kMaxSize) in UsedSize()
416 m->user_requested_size = SizeClassMap::kMaxSize; in Allocate()
440 if (needed_size > SizeClassMap::kMaxSize) in Allocate()
443 thread_stats.malloced_by_size[SizeClassMap::ClassID(needed_size)]++; in Allocate()
/external/compiler-rt/lib/msan/
Dmsan_allocator.cc47 typedef CompactSizeClassMap SizeClassMap; typedef
50 SizeClassMap, kRegionSizeLog, ByteMap,
81 typedef CompactSizeClassMap SizeClassMap; typedef
84 SizeClassMap, kRegionSizeLog, ByteMap,
/external/compiler-rt/lib/lsan/
Dlsan_allocator.cc40 typedef CompactSizeClassMap SizeClassMap; typedef
42 sizeof(ChunkMetadata), SizeClassMap, kRegionSizeLog, ByteMap>
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cc60 template <class SizeClassMap>
62 typedef SizeClassMap SCMap; in TestSizeClassMap()
776 typedef SizeClassMap<63, 128, 16> SpecialSizeClassMap; in TEST()