Skip to main content

Module isolate

Module isolate 

Source

Structs§

PromiseRejectState

Constants§

DEFAULT_HEAP_LIMIT_MB
Default per-isolate heap cap applied when the caller passes no explicit limit.

Functions§

configure_isolate
create_context
Create a new V8 context on the given isolate. Returns a Global handle so the context can be reused across scopes.
create_isolate
Create a new V8 isolate with an optional heap limit in MB. None applies the bounded-by-default cap (DEFAULT_HEAP_LIMIT_MB) — an isolate is NEVER created with an unbounded heap, so a guest heap bomb terminates its own isolate rather than fatal-aborting the shared process.
drop_isolate
init_v8_platform
Initialize the V8 platform (once per process). Safe to call multiple times; only the first call takes effect.
install_heap_limit_guard
Register the near-heap-limit OOM guard on an isolate that was created with a configured heap cap. Without this guard, V8 fatal-aborts the whole (process- global) runtime with a SIGTRAP when the cap is reached, taking down every concurrent tenant; with it, the offending isolate is terminated instead.
with_isolate_lifecycle_lock
Run V8 isolate create/drop work under a process-wide lifecycle lock.