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

// 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.

#include "src/base/sanitizer/lsan-page-allocator.h"

#include "include/v8-platform.h"
#include "src/base/logging.h"

#if defined(LEAK_SANITIZER)
#include <sanitizer/lsan_interface.h>
#endif

namespace v8 {
namespace base {

LsanPageAllocator::LsanPageAllocator(v8::PageAllocator* page_allocator)
    :{}

void* LsanPageAllocator::AllocatePages(void* hint, size_t size,
                                       size_t alignment,
                                       PageAllocator::Permission access) {}

std::unique_ptr<v8::PageAllocator::SharedMemory>
LsanPageAllocator::AllocateSharedPages(size_t size,
                                       const void* original_address) {}

bool LsanPageAllocator::CanAllocateSharedPages() {}

bool LsanPageAllocator::FreePages(void* address, size_t size) {}

bool LsanPageAllocator::ReleasePages(void* address, size_t size,
                                     size_t new_size) {}

}  // namespace base
}  // namespace v8