github.com/taubyte/vm-wasm-utils@v1.0.2/buildoptions/stackoverflow.go (about)

     1  package buildoptions
     2  
     3  // CallStackCeiling is the maximum WebAssembly call stack height. This allows wazero to raise
     4  // wasm.ErrCallStackOverflow instead of overflowing the Go runtime.
     5  //
     6  // The default value should suffice for most use cases. Those wishing to change this can via `go build -ldflags`.
     7  var CallStackCeiling = 2000