chromium/v8/src/base/sanitizer/lsan-page-allocator.h

// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_BASE_SANITIZER_LSAN_PAGE_ALLOCATOR_H_
#define V8_BASE_SANITIZER_LSAN_PAGE_ALLOCATOR_H_

#include <set>

#include "include/v8-platform.h"
#include "src/base/base-export.h"
#include "src/base/compiler-specific.h"
#if defined(LEAK_SANITIZER)
#include "src/base/platform/mutex.h"
#endif

namespace v8 {
namespace base {

// This is a v8::PageAllocator implementation that decorates provided page
// allocator object with leak sanitizer notifications when LEAK_SANITIZER
// is defined.
class V8_BASE_EXPORT LsanPageAllocator : public v8::PageAllocator {};

}  // namespace base
}  // namespace v8
#endif  // V8_BASE_SANITIZER_LSAN_PAGE_ALLOCATOR_H_