Lines Matching refs:chunk
104 AsanChunkView chunk, uptr addr, in GetAccessToHeapChunkInformation() argument
107 if (chunk.AddrIsAtLeft(addr, access_size, &descr->offset)) { in GetAccessToHeapChunkInformation()
109 } else if (chunk.AddrIsAtRight(addr, access_size, &descr->offset)) { in GetAccessToHeapChunkInformation()
115 } else if (chunk.AddrIsInside(addr, access_size, &descr->offset)) { in GetAccessToHeapChunkInformation()
120 descr->chunk_begin = chunk.Beg(); in GetAccessToHeapChunkInformation()
121 descr->chunk_size = chunk.UsedSize(); in GetAccessToHeapChunkInformation()
122 descr->user_requested_alignment = chunk.UserRequestedAlignment(); in GetAccessToHeapChunkInformation()
123 descr->alloc_type = chunk.GetAllocType(); in GetAccessToHeapChunkInformation()
157 AsanChunkView chunk = FindHeapChunkByAddress(addr); in GetHeapAddressInformation() local
158 if (!chunk.IsValid()) { in GetHeapAddressInformation()
162 GetAccessToHeapChunkInformation(&descr->chunk_access, chunk, addr, in GetHeapAddressInformation()
164 CHECK_NE(chunk.AllocTid(), kInvalidTid); in GetHeapAddressInformation()
165 descr->alloc_tid = chunk.AllocTid(); in GetHeapAddressInformation()
166 descr->alloc_stack_id = chunk.GetAllocStackId(); in GetHeapAddressInformation()
167 descr->free_tid = chunk.FreeTid(); in GetHeapAddressInformation()
169 descr->free_stack_id = chunk.GetFreeStackId(); in GetHeapAddressInformation()