Skip to main content

with_isolate_lifecycle_lock

Function with_isolate_lifecycle_lock 

Source
pub fn with_isolate_lifecycle_lock<T>(f: impl FnOnce() -> T) -> T
Expand description

Run V8 isolate create/drop work under a process-wide lifecycle lock.

rusty_v8 130.0.7 embeds a V8 13.0-era process-wide WebAssembly code pointer table. Isolate construction allocates wasm builtin handles from that table and isolate destruction frees them again, so create/drop must not overlap across session threads.