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()
475 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE); in QuarantineChunk()
542 u8 chunk_state = m->chunk_state; in Reallocate() local
543 if (chunk_state != CHUNK_ALLOCATED) in Reallocate()
544 ReportInvalidFree(old_ptr, chunk_state, stack); in Reallocate()
566 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) { in ReportInvalidFree()
567 if (chunk_state == CHUNK_QUARANTINE) in ReportInvalidFree()
610 if (m->chunk_state != CHUNK_ALLOCATED) return 0; in AllocationSize()
657 return chunk_ != 0 && chunk_->chunk_state != CHUNK_AVAILABLE; in IsValid()
806 if (m->chunk_state != __asan::CHUNK_ALLOCATED) in PointsIntoChunk()
828 return m->chunk_state == __asan::CHUNK_ALLOCATED; in allocated()
859 if ((m->chunk_state == __asan::CHUNK_ALLOCATED) && m->AddrIsInside(addr)) { in IgnoreObjectLocked()