SetMaxWasmStack configures the maximum stack size, in bytes, that JIT code can use. The amount of stack space that wasm takes is always relative to the first invocation of wasm on the stack. Recursive calls with host frames in the middle will all need to fit within this setting. Note that this setti
(size int)
| 67 | // Recursive calls with host frames in the middle will all need to fit within this setting. |
| 68 | // Note that this setting is not interpreted with 100% precision. |
| 69 | func (cfg *Config) SetMaxWasmStack(size int) { |
| 70 | C.wasmtime_config_max_wasm_stack_set(cfg.ptr(), C.size_t(size)) |
| 71 | runtime.KeepAlive(cfg) |
| 72 | } |
| 73 | |
| 74 | // SetWasmSIMD configures whether the wasm SIMD proposal is enabled |
| 75 | func (cfg *Config) SetWasmSIMD(enabled bool) { |