1 //===-- msan_allocator.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is a part of MemorySanitizer.
12 //===----------------------------------------------------------------------===//
14 #ifndef MSAN_ALLOCATOR_H
15 #define MSAN_ALLOCATOR_H
17 #include "sanitizer_common/sanitizer_common.h"
21 struct MsanThreadLocalMallocStorage {
22 uptr quarantine_cache[16];
23 // Allocator cache contains atomic_uint64_t which must be 8-byte aligned.
24 ALIGNED(8) uptr allocator_cache[96 * (512 * 8 + 16)]; // Opaque.
28 // These objects are allocated via mmap() and are zero-initialized.
29 MsanThreadLocalMallocStorage() {}
33 #endif // MSAN_ALLOCATOR_H