Lines Matching full:chunk_state
73 u32 chunk_state : 8; // Must be first.
137 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE);
303 if (left_chunk->chunk_state != right_chunk->chunk_state) {
304 if (left_chunk->chunk_state == CHUNK_ALLOCATED)
306 if (right_chunk->chunk_state == CHUNK_ALLOCATED)
308 if (left_chunk->chunk_state == CHUNK_QUARANTINE)
310 if (right_chunk->chunk_state == CHUNK_QUARANTINE)
313 // Same chunk_state: choose based on offset.
463 // Flip the chunk_state atomically to avoid race on double-free.
474 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE);
541 u8 chunk_state = m->chunk_state;
542 if (chunk_state != CHUNK_ALLOCATED)
543 ReportInvalidFree(old_ptr, chunk_state, stack);
565 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) {
566 if (chunk_state == CHUNK_QUARANTINE)
609 if (m->chunk_state != CHUNK_ALLOCATED) return 0;
656 return chunk_ && chunk_->chunk_state != CHUNK_AVAILABLE;
805 if (m->chunk_state != __asan::CHUNK_ALLOCATED)
827 return m->chunk_state == __asan::CHUNK_ALLOCATED;
858 if ((m->chunk_state == __asan::CHUNK_ALLOCATED) && m->AddrIsInside(addr)) {