uptr AsanChunkView::UsedSize() { return chunk_->UsedSize(); }
uptr AsanChunkView::AllocTid() { return chunk_->alloc_tid; }
uptr AsanChunkView::FreeTid() { return chunk_->free_tid; }
-AllocType AsanChunkView::AllocType() {
- return (enum AllocType)chunk_->alloc_type;
+AllocType AsanChunkView::GetAllocType() {
+ return (AllocType)chunk_->alloc_type;
}
static StackTrace GetStackTraceFromId(u32 id) {
u32 GetFreeStackId();
StackTrace GetAllocStack();
StackTrace GetFreeStack();
- AllocType AllocType();
+ AllocType GetAllocType();
bool AddrIsInside(uptr addr, uptr access_size, sptr *offset) {
if (addr >= Beg() && (addr + access_size) <= End()) {
*offset = addr - Beg();
}
descr->chunk_begin = chunk.Beg();
descr->chunk_size = chunk.UsedSize();
- descr->alloc_type = chunk.AllocType();
+ descr->alloc_type = chunk.GetAllocType();
}
static void PrintHeapChunkAccess(uptr addr, const ChunkAccess &descr) {