After D143438 there is no point in this check as the size will never 0. Also this keeps it consistent with ASAN where there is not size check in LsanMetadata::allocated.
Reviewed By: MaskRay, vitalybuka
Differential Revision: https://reviews.llvm.org/D143442
}
inline bool Metadata::IsAllocated() const {
- return atomic_load(&chunk_state, memory_order_relaxed) == CHUNK_ALLOCATED &&
- GetRequestedSize();
+ return atomic_load(&chunk_state, memory_order_relaxed) == CHUNK_ALLOCATED;
}
inline u64 Metadata::GetRequestedSize() const {