#include <v8-sandbox.h>
Static Public Member Functions | |
static void | InitializeBeforeThreadCreation () |
static void | PrepareCurrentThreadForHardwareSandboxing () |
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.
|
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.
|
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.