WasmSandboxConfig
data class WasmSandboxConfig(val maxMemoryPages: Int = 16, val executionTimeout: Duration = 1.seconds)
Configuration for the sandboxed WASM execution environment.
Target-neutral: every WasmRuntime implementation (JVM Chicory, browser WebAssembly API, native wasm3) takes the same policy. maxMemoryPages caps linear memory at load time (a conforming runtime rejects a module whose declared initial or max exceeds the cap, or that declares memory with no explicit max — see WasmRuntime); executionTimeout bounds each invocation's wall-clock CPU time (a runaway guest is interrupted and surfaces as WasmExecutionException).
Parameters
maxMemoryPages
Maximum linear-memory pages the guest may declare (1 page = 64 KiB). Must be in 1..[WASM_MAX_MEMORY_PAGES] (65536).
executionTimeout
Maximum wall-clock time allowed for a single Op invocation. Must be positive.