Lines Matching full:metadata

83 inline void Metadata::SetAllocated(u32 stack, u64 size) {  in SetAllocated()
94 inline void Metadata::SetUnallocated() { in SetUnallocated()
101 inline bool Metadata::IsAllocated() const { in IsAllocated()
105 inline u64 Metadata::GetRequestedSize() const { in GetRequestedSize()
109 inline u32 Metadata::GetAllocStackId() const { in GetAllocStackId()
113 inline u32 Metadata::GetAllocThreadId() const { in GetAllocThreadId()
123 inline void Metadata::SetLsanTag(__lsan::ChunkTag tag) { in SetLsanTag()
127 inline __lsan::ChunkTag Metadata::GetLsanTag() const { in GetLsanTag()
256 Metadata *meta = in HwasanAllocate()
257 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in HwasanAllocate()
301 Metadata *meta = in HwasanDeallocate()
302 reinterpret_cast<Metadata *>(allocator.GetMetaData(aligned_ptr)); in HwasanDeallocate()
385 Metadata *meta = in HwasanReallocate()
386 reinterpret_cast<Metadata *>(allocator.GetMetaData(untagged_ptr_old)); in HwasanReallocate()
410 Metadata *metadata = in FindHeapChunkByAddress() local
411 reinterpret_cast<Metadata*>(allocator.GetMetaData(block)); in FindHeapChunkByAddress()
412 return HwasanChunkView(reinterpret_cast<uptr>(block), metadata); in FindHeapChunkByAddress()
424 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationBegin()
438 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationSize()
446 Metadata *meta = in AllocationSizeFast()
447 reinterpret_cast<Metadata *>(allocator.GetMetaData(aligned_ptr)); in AllocationSizeFast()
562 __hwasan::Metadata *metadata = reinterpret_cast<__hwasan::Metadata *>( in PointsIntoChunk() local
564 if (!metadata || !metadata->IsAllocated()) in PointsIntoChunk()
566 if (addr < chunk + metadata->GetRequestedSize()) in PointsIntoChunk()
568 if (IsSpecialCaseOfOperatorNew0(chunk, metadata->GetRequestedSize(), addr)) in PointsIntoChunk()
579 __hwasan::Metadata *metadata = reinterpret_cast<__hwasan::Metadata *>( in GetUserBegin() local
581 if (!metadata || !metadata->IsAllocated()) in GetUserBegin()
604 __hwasan::Metadata *m = reinterpret_cast<__hwasan::Metadata *>(metadata_); in allocated()
609 __hwasan::Metadata *m = reinterpret_cast<__hwasan::Metadata *>(metadata_); in tag()
614 __hwasan::Metadata *m = reinterpret_cast<__hwasan::Metadata *>(metadata_); in set_tag()
619 __hwasan::Metadata *m = reinterpret_cast<__hwasan::Metadata *>(metadata_); in requested_size()
624 __hwasan::Metadata *m = reinterpret_cast<__hwasan::Metadata *>(metadata_); in stack_trace_id()
638 __hwasan::Metadata *metadata = reinterpret_cast<__hwasan::Metadata *>( in IgnoreObject() local
640 if (!metadata || !metadata->IsAllocated()) in IgnoreObject()
642 if (addr >= chunk + metadata->GetRequestedSize()) in IgnoreObject()
644 if (metadata->GetLsanTag() == kIgnored) in IgnoreObject()
647 metadata->SetLsanTag(kIgnored); in IgnoreObject()