Path: blob/main/contrib/llvm-project/compiler-rt/lib/dfsan/dfsan_allocator.h
35233 views
//===-- dfsan_allocator.h ---------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of DataflowSanitizer.9//10//===----------------------------------------------------------------------===//1112#ifndef DFSAN_ALLOCATOR_H13#define DFSAN_ALLOCATOR_H1415#include "sanitizer_common/sanitizer_common.h"1617namespace __dfsan {1819struct DFsanThreadLocalMallocStorage {20alignas(8) uptr allocator_cache[96 * (512 * 8 + 16)]; // Opaque.21void CommitBack();2223private:24// These objects are allocated via mmap() and are zero-initialized.25DFsanThreadLocalMallocStorage() {}26};2728} // namespace __dfsan29#endif // DFSAN_ALLOCATOR_H303132