#include "gin/v8_platform_thread_isolated_allocator.h"
#include "partition_alloc/partition_alloc_constants.h"
#include "partition_alloc/partition_root.h"
#if PA_BUILDFLAG(ENABLE_THREAD_ISOLATION)
#include <sys/mman.h>
#include <sys/syscall.h>
#include "gin/thread_isolation.h"
#include "partition_alloc/thread_isolation/pkey.h"
#if PA_BUILDFLAG(ENABLE_PKEYS)
#else
#error Not implemented for non-pkey thread isolation
#endif
namespace gin {
ThreadIsolatedAllocator::ThreadIsolatedAllocator() = default;
ThreadIsolatedAllocator::~ThreadIsolatedAllocator() = default;
void ThreadIsolatedAllocator::Initialize(int pkey) { … }
void* ThreadIsolatedAllocator::Allocate(size_t size) { … }
void ThreadIsolatedAllocator::Free(void* object) { … }
enum ThreadIsolatedAllocator::Type ThreadIsolatedAllocator::Type() const { … }
int ThreadIsolatedAllocator::Pkey() const { … }
}
#endif