MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / SetMaxWasmStack

Method SetMaxWasmStack

config.go:69–72  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
69func (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
75func (cfg *Config) SetWasmSIMD(enabled bool) {

Callers 1

TestConfigFunction · 0.80

Calls 1

ptrMethod · 0.95

Tested by 1

TestConfigFunction · 0.64