Lines Matching refs:chunk_state
161 u32 chunk_state : 8; // Must be first.
272 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE);
436 static void ReportInvalidFree(void *ptr, u8 chunk_state, StackTrace *stack) {
437 if (chunk_state == CHUNK_QUARANTINE)
446 chunk_state atomically to avoid race on double-free.
457 CHECK_EQ(m->chunk_state, CHUNK_QUARANTINE);
521 u8 chunk_state = m->chunk_state;
522 if (chunk_state != CHUNK_ALLOCATED)
523 ReportInvalidFree(old_ptr, chunk_state, stack);
563 if (m->chunk_state != CHUNK_ALLOCATED) return 0;
573 if (left_chunk->chunk_state != right_chunk->chunk_state) {
574 if (left_chunk->chunk_state == CHUNK_ALLOCATED)
576 if (right_chunk->chunk_state == CHUNK_ALLOCATED)
578 if (left_chunk->chunk_state == CHUNK_QUARANTINE)
580 if (right_chunk->chunk_state == CHUNK_QUARANTINE)
583 // Same chunk_state: choose based on offset.
726 if ((m->chunk_state == __asan::CHUNK_ALLOCATED) && m->AddrIsInside(addr))
744 return m->chunk_state == __asan::CHUNK_ALLOCATED;
775 if ((m->chunk_state == __asan::CHUNK_ALLOCATED) && m->AddrIsInside(addr)) {