Lines Matching refs:chunk
41 // We are about to unmap a chunk of user memory.
66 // Every chunk of memory allocated by this allocator can be in one of 3 states:
67 // CHUNK_AVAILABLE: the chunk is in the free list and ready to be allocated.
68 // CHUNK_ALLOCATED: the chunk is allocated and not yet freed.
69 // CHUNK_QUARANTINE: the chunk was freed and put into quarantine zone.
105 // The memory chunk allocated from the underlying allocator looks like this:
230 // contents of deallocated chunk, confusing GetAsanChunk lookup.
314 // chunk. This is possible if flags()->poison_heap was disabled for some
409 // Expects the chunk to already be marked as quarantined by using
460 // Must mark the chunk as quarantined before any changes to its metadata.
528 // Prefer an allocated chunk over freed chunk and freed chunk
529 // over available chunk.
554 // The address is in the chunk's left redzone, so maybe it is actually
555 // a right buffer overflow from the other chunk to the left.
556 // Search a bit to the left to see if there is another chunk.
560 if (m2 == m1) continue; // Still the same chunk.
685 uptr chunk = m->Beg();
689 return chunk;
690 if (IsSpecialCaseOfOperatorNew0(chunk, m->UsedSize(/*locked_version*/ true),
692 return chunk;
696 uptr GetUserBegin(uptr chunk) {
698 __asan::GetAsanChunkByAddrFastLocked(chunk);
703 LsanMetadata::LsanMetadata(uptr chunk) {
704 metadata_ = reinterpret_cast<void *>(chunk - __asan::kChunkHeaderSize);