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

#include <v8-sandbox.h>

Static Public Member Functions

static V8_EXPORT void InitializeBeforeThreadCreation ()
 
static V8_EXPORT 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.

Definition at line 110 of file v8-sandbox.h.

Member Function Documentation

◆ InitializeBeforeThreadCreation()

static V8_EXPORT void 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 V8_EXPORT void 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: