Closed lazytiger closed 3 weeks ago
What is the max memory size set by the wasm module? Wasm shared memories are required to set some limit to their size. It may be the case that the linker defaulted to a too small size.
I use default for all the other config parameters. @bjorn3 How can I set max memory size, I don't find an API related to this purpose except max_wasm_stack
ImportType { module: "env", name: "memory", ty: Memory(MemoryType { ty: Memory { minimum: 17, maximum: Some(17), shared: true, memory64: false } }) }
The shared memory maximum is 17, how can I change the maximum? Thanks
Thanks for your help. I use the walrus crate to modify the wasm file, and it works.
You can set the mac size by passing --max-memory
to the linker as alternative.
I want to test if I can use the parallel feature in the specs crate.
I have tested max_wasm_stack=200x1024x1024, it fails the same.
I wonder if this is a bug or if I just missed some configuration.