Lines Matching refs:chunk_state

92   atomic_uint8_t chunk_state;  member in __asan::ChunkHeader
236 if (!atomic_compare_exchange_strong(&m->chunk_state, &old_chunk_state, in Recycle()
405 if (ac && atomic_load(&ac->chunk_state, memory_order_acquire) == in RePoisonChunk()
494 u8 left_state = atomic_load(&left_chunk->chunk_state, memory_order_relaxed); in ChooseChunk()
496 atomic_load(&right_chunk->chunk_state, memory_order_relaxed); in ChooseChunk()
519 if (atomic_load(&m->chunk_state, memory_order_acquire) != CHUNK_ALLOCATED) in UpdateAllocationStack()
653 atomic_store(&m->chunk_state, CHUNK_ALLOCATED, memory_order_release); in Allocate()
668 if (!atomic_compare_exchange_strong(&m->chunk_state, &old_chunk_state, in AtomicallySetQuarantineFlagIfAllocated()
684 CHECK_EQ(atomic_load(&m->chunk_state, memory_order_relaxed), in QuarantineChunk()
760 u8 chunk_state = atomic_load(&m->chunk_state, memory_order_acquire); in Reallocate() local
761 if (chunk_state != CHUNK_ALLOCATED) in Reallocate()
762 ReportInvalidFree(old_ptr, chunk_state, stack); in Reallocate()
787 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) { in ReportInvalidFree()
788 if (chunk_state == CHUNK_QUARANTINE) in ReportInvalidFree()
815 u8 state = atomic_load(&p->chunk_state, memory_order_relaxed); in GetAsanChunk()
838 if (atomic_load(&m->chunk_state, memory_order_acquire) != CHUNK_ALLOCATED) in AllocationSize()
908 return chunk_ && atomic_load(&chunk_->chunk_state, memory_order_relaxed) != in IsValid()
912 return chunk_ && atomic_load(&chunk_->chunk_state, memory_order_relaxed) == in IsAllocated()
916 return chunk_ && atomic_load(&chunk_->chunk_state, memory_order_relaxed) == in IsQuarantined()
1132 if (!m || atomic_load(&m->chunk_state, memory_order_acquire) != in PointsIntoChunk()
1163 return atomic_load(&m->chunk_state, memory_order_relaxed) == in allocated()
1198 (atomic_load(&m->chunk_state, memory_order_acquire) != in IgnoreObject()
1218 if (atomic_load(&m->chunk_state, memory_order_acquire) != CHUNK_ALLOCATED) in AllocationBegin()