Stream: wasmtime

Topic: WasmEngine State before function invocation


view this post on Zulip Ashanti Mutinta (Jul 05 2024 at 15:25):

I'm noticing that if I have a call hook to record state transitions it records a lot of CallingWasm to ReturningWasm states before it executes that long running function. I'm using preview 2 and I'm just wondering if we are doing that to set up preliminary data before we execute?

view this post on Zulip Alex Crichton (Jul 08 2024 at 14:20):

You're probably seeing the enter/exit from wasm from calling cabi_realloc which would depend on the shape of the WIT and data being passed to the function. In essence though, yes, ithat's setting up data before execution

view this post on Zulip Ashanti Mutinta (Jul 08 2024 at 14:20):

Awesome thank you


Last updated: Dec 23 2024 at 14:03 UTC