[compiler-rt] 398c44b - [NFC][Asan] Inline enum doc strings
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 5 15:56:38 PDT 2020
Author: Vitaly Buka
Date: 2020-09-05T15:54:18-07:00
New Revision: 398c44ba84e10dec1224365065615b08be106e1f
URL: https://github.com/llvm/llvm-project/commit/398c44ba84e10dec1224365065615b08be106e1f
DIFF: https://github.com/llvm/llvm-project/commit/398c44ba84e10dec1224365065615b08be106e1f.diff
LOG: [NFC][Asan] Inline enum doc strings
Added:
Modified:
compiler-rt/lib/asan/asan_allocator.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_allocator.cpp b/compiler-rt/lib/asan/asan_allocator.cpp
index a752156aa9bd..81c22e7a213f 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
};
More information about the llvm-commits
mailing list