Home
last modified time | relevance | path

Searched refs:ChunkMetadata (Results 1 – 3 of 3) sorted by relevance

/external/compiler-rt/lib/lsan/
Dlsan_allocator.cc28 struct ChunkMetadata { struct
42 sizeof(ChunkMetadata), SizeClassMap, kRegionSizeLog, ByteMap>
49 sizeof(ChunkMetadata), DefaultSizeClassMap> PrimaryAllocator;
67 static ChunkMetadata *Metadata(const void *p) { in Metadata()
68 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); in Metadata()
73 ChunkMetadata *m = Metadata(p); in RegisterAllocation()
83 ChunkMetadata *m = Metadata(p); in RegisterDeallocation()
132 ChunkMetadata *m = Metadata(p); in GetMallocUsableSize()
159 ChunkMetadata *m = Metadata(reinterpret_cast<void *>(chunk)); in PointsIntoChunk()
180 return reinterpret_cast<ChunkMetadata *>(metadata_)->allocated; in allocated()
[all …]
/external/llvm-project/compiler-rt/lib/lsan/
Dlsan_allocator.cpp56 static ChunkMetadata *Metadata(const void *p) { in Metadata()
57 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); in Metadata()
62 ChunkMetadata *m = Metadata(p); in RegisterAllocation()
72 ChunkMetadata *m = Metadata(p); in RegisterDeallocation()
142 ChunkMetadata *m = Metadata(p); in GetMallocUsableSize()
254 ChunkMetadata *m = Metadata(reinterpret_cast<void *>(chunk)); in PointsIntoChunk()
275 return reinterpret_cast<ChunkMetadata *>(metadata_)->allocated; in allocated()
279 return reinterpret_cast<ChunkMetadata *>(metadata_)->tag; in tag()
283 reinterpret_cast<ChunkMetadata *>(metadata_)->tag = value; in set_tag()
287 return reinterpret_cast<ChunkMetadata *>(metadata_)->requested_size; in requested_size()
[all …]
Dlsan_allocator.h40 struct ChunkMetadata { struct
58 static const uptr kMetadataSize = sizeof(ChunkMetadata); argument
86 static const uptr kMetadataSize = sizeof(ChunkMetadata);