[NFC][Asan] Inline enum doc strings
authorVitaly Buka <vitalybuka@google.com>
Fri, 4 Sep 2020 07:17:34 +0000 (00:17 -0700)
committerVitaly Buka <vitalybuka@google.com>
Sat, 5 Sep 2020 22:54:18 +0000 (15:54 -0700)
compiler-rt/lib/asan/asan_allocator.cpp

index a752156..81c22e7 100644 (file)
@@ -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
 };