diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-11-27 13:22:21 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-11-27 13:22:21 +0000 |
| commit | e0e31c4a309148c6b513bae7e9db89a5963ce208 (patch) | |
| tree | 9f958e901229984a93fd2d5cabc2f44c25254fec /compiler-rt/lib/asan/asan_allocator.h | |
| parent | b76b6876283ddfcb7da746434404d4b58cbe0f6d (diff) | |
| download | bcm5719-llvm-e0e31c4a309148c6b513bae7e9db89a5963ce208.tar.gz bcm5719-llvm-e0e31c4a309148c6b513bae7e9db89a5963ce208.zip | |
[ASan] Clarify that AsanThread objects are allocated only via mmap(). No functionality change.
llvm-svn: 195840
Diffstat (limited to 'compiler-rt/lib/asan/asan_allocator.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_allocator.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/compiler-rt/lib/asan/asan_allocator.h b/compiler-rt/lib/asan/asan_allocator.h index c5fcbbb5d64..e366bc47fe6 100644 --- a/compiler-rt/lib/asan/asan_allocator.h +++ b/compiler-rt/lib/asan/asan_allocator.h @@ -91,16 +91,12 @@ class AsanChunkFifoList: public IntrusiveList<AsanChunk> { }; struct AsanThreadLocalMallocStorage { - explicit AsanThreadLocalMallocStorage(LinkerInitialized x) - { } - AsanThreadLocalMallocStorage() { - CHECK(REAL(memset)); - REAL(memset)(this, 0, sizeof(AsanThreadLocalMallocStorage)); - } - uptr quarantine_cache[16]; uptr allocator2_cache[96 * (512 * 8 + 16)]; // Opaque. void CommitBack(); + private: + // These objects are allocated via mmap() and are zero-initialized. + AsanThreadLocalMallocStorage() {} }; void *asan_memalign(uptr alignment, uptr size, StackTrace *stack, |

