v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
ThreadIsolatedAllocator Class Referenceabstract

#include <v8-platform.h>

Public Types

enum class  Type { kPkey }
 

Public Member Functions

virtual ~ThreadIsolatedAllocator ()=default
 
virtual void * Allocate (size_t size)=0
 
virtual void Free (void *object)=0
 
virtual Type Type () const =0
 
virtual int Pkey () const
 

Detailed Description

An allocator that uses per-thread permissions to protect the memory.

The implementation is platform/hardware specific, e.g. using pkeys on x64.

INTERNAL ONLY: This interface has not been stabilised and may change without notice from one release to another without being deprecated first.

Definition at line 686 of file v8-platform.h.

Member Enumeration Documentation

◆ Type

enum class Type
strong
Enumerator
kPkey 

Definition at line 694 of file v8-platform.h.

Constructor & Destructor Documentation

◆ ~ThreadIsolatedAllocator()

virtual ~ThreadIsolatedAllocator ( )
virtualdefault

Member Function Documentation

◆ Allocate()

virtual void * Allocate ( size_t  size)
pure virtual

◆ Free()

virtual void Free ( void *  object)
pure virtual

◆ Pkey()

virtual int Pkey ( ) const
inlinevirtual

Return the pkey used to implement the thread isolation if Type == kPkey.

Definition at line 703 of file v8-platform.h.

◆ Type()

virtual Type Type ( ) const
pure virtual

The documentation for this class was generated from the following file: