[compiler-rt] a9c0bf0 - [NFC][Asan] Inline enum doc strings
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 00:19:11 PDT 2020
Author: Vitaly Buka
Date: 2020-09-04T00:18:59-07:00
New Revision: a9c0bf04043462d43013bc5616aa48f6d3e16b88
URL: https://github.com/llvm/llvm-project/commit/a9c0bf04043462d43013bc5616aa48f6d3e16b88
DIFF: https://github.com/llvm/llvm-project/commit/a9c0bf04043462d43013bc5616aa48f6d3e16b88.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 c7c9d7a7b3ce..cb9f49f73a32 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