#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) { … }
}
}