From 398c44ba84e10dec1224365065615b08be106e1f Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 4 Sep 2020 00:17:34 -0700 Subject: [PATCH] [NFC][Asan] Inline enum doc strings --- compiler-rt/lib/asan/asan_allocator.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler-rt/lib/asan/asan_allocator.cpp b/compiler-rt/lib/asan/asan_allocator.cpp index a752156..81c22e7 100644 --- a/compiler-rt/lib/asan/asan_allocator.cpp +++ b/compiler-rt/lib/asan/asan_allocator.cpp @@ -101,16 +101,14 @@ static const uptr kChunkHeader2Size = sizeof(ChunkBase) - kChunkHeaderSize; COMPILER_CHECK(kChunkHeaderSize == 16); COMPILER_CHECK(kChunkHeader2Size <= 16); -// Every chunk of memory allocated by this allocator can be in one of 3 states: -// CHUNK_AVAILABLE: the chunk is in the free list and ready to be allocated. -// CHUNK_ALLOCATED: the chunk is allocated and not yet freed. -// CHUNK_QUARANTINE: the chunk was freed and put into quarantine zone. enum { // Either just allocated by underlying allocator, but AsanChunk is not yet // ready, or almost returned to undelying allocator and AsanChunk is already // meaningless. CHUNK_INVALID = 0, + // The chunk is allocated and not yet freed. CHUNK_ALLOCATED = 2, + // The chunk was freed and put into quarantine zone. CHUNK_QUARANTINE = 3 }; -- 2.7.4