Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
v8::SandboxHardwareSupport Class Reference

#include <v8-sandbox.h>

Static Public Member Functions

static void InitializeBeforeThreadCreation ()
 
static void PrepareCurrentThreadForHardwareSandboxing ()
 

Detailed Description

Hardware support for the V8 Sandbox.

This is an experimental feature that may change or be removed without further notice. Use at your own risk.

Member Function Documentation

◆ InitializeBeforeThreadCreation()

static void v8::SandboxHardwareSupport::InitializeBeforeThreadCreation ( )
static

Initialize sandbox hardware support. This needs to be called before creating any thread that might access sandbox memory since it sets up hardware permissions to the memory that will be inherited on clone.

◆ PrepareCurrentThreadForHardwareSandboxing()

static void v8::SandboxHardwareSupport::PrepareCurrentThreadForHardwareSandboxing ( )
static

Prepares the current thread for executing sandboxed code.

This must be called on newly created threads before they execute any sandboxed code (in particular any JavaScript or WebAssembly code). It should not be invoked on threads that never execute sandboxed code, although it is fine to do so from a security point of view.


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