Lines Matching refs:chunk_state
73 u32 chunk_state : 8; // Must be first. member
137 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE); in Recycle()
303 if (left_chunk->chunk_state != right_chunk->chunk_state) { in ChooseChunk()
304 if (left_chunk->chunk_state == CHUNK_ALLOCATED) in ChooseChunk()
306 if (right_chunk->chunk_state == CHUNK_ALLOCATED) in ChooseChunk()
308 if (left_chunk->chunk_state == CHUNK_QUARANTINE) in ChooseChunk()
310 if (right_chunk->chunk_state == CHUNK_QUARANTINE) in ChooseChunk()
481 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE); in QuarantineChunk()
551 u8 chunk_state = m->chunk_state; in Reallocate() local
552 if (chunk_state != CHUNK_ALLOCATED) in Reallocate()
553 ReportInvalidFree(old_ptr, chunk_state, stack); in Reallocate()
575 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) { in ReportInvalidFree()
576 if (chunk_state == CHUNK_QUARANTINE) in ReportInvalidFree()
619 if (m->chunk_state != CHUNK_ALLOCATED) return 0; in AllocationSize()
666 return chunk_ && chunk_->chunk_state != CHUNK_AVAILABLE; in IsValid()
669 return chunk_ && chunk_->chunk_state == CHUNK_ALLOCATED; in IsAllocated()
821 if (m->chunk_state != __asan::CHUNK_ALLOCATED) in PointsIntoChunk()
843 return m->chunk_state == __asan::CHUNK_ALLOCATED; in allocated()
874 if ((m->chunk_state == __asan::CHUNK_ALLOCATED) && m->AddrIsInside(addr)) { in IgnoreObjectLocked()