Lines Matching full:metadata

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