Is there any way to get panic=unwind behavior on wasm blobs? I'd like to make sure I deallocate the missing memory in case of a trap, because reinitializing the whole wasm module to avoid memory leaks sounds... suboptimal :/
Webassembly doesn't yet have support for unwinding. I believe there is a proposal for this but I don't know what the status is.
Hmm ok thank you! Guess I'll just eat the memory leak until such a proposal lands and is implemented then, panics are hopefully not going to happen often in the configuration :)
There's a proposal for exception handling, but it's not implemented or planned yet in Wasmtime as far as I know. I assume that when it becomes stage 4 in wasm, it'll be a stronger requirement in wasmtime. (See also this issue.)
Thank you! I'd love for something like that to happen indeed :)
Last updated: Dec 23 2024 at 12:05 UTC