[clang] Handle __declspec() attributes in using
[llvm-project.git] / compiler-rt / lib / dfsan / dfsan_allocator.h
blob3b4171b6314d6de10c45025e052521a419ca61b1
1 //===-- dfsan_allocator.h ---------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of DataflowSanitizer.
11 //===----------------------------------------------------------------------===//
13 #ifndef DFSAN_ALLOCATOR_H
14 #define DFSAN_ALLOCATOR_H
16 #include "sanitizer_common/sanitizer_common.h"
18 namespace __dfsan {
20 struct DFsanThreadLocalMallocStorage {
21 ALIGNED(8) uptr allocator_cache[96 * (512 * 8 + 16)]; // Opaque.
22 void CommitBack();
24 private:
25 // These objects are allocated via mmap() and are zero-initialized.
26 DFsanThreadLocalMallocStorage() {}
29 } // namespace __dfsan
30 #endif // DFSAN_ALLOCATOR_H