Stream: wasmtime

Topic: Epoch based interruption trap


view this post on Zulip Saúl Cabrera (Apr 27 2022 at 12:06):

Hey! I have a small question around the API for epoch based interruption: is there a particular reason why the EpochDeadlineError isn't publicly exposed? We are currently migrating to epoch based interruption from the previous approach in which the API returned a TrapCode::Interrupt to signal an interruption in execution. Would it make sense to expose it? Or perhaps I'm missing something and there's an equivalent way to TrapCode::Interrupt to determine when the execution was interrupted?

Standalone JIT-style runtime for WebAssembly, using Cranelift - wasmtime/store.rs at main · bytecodealliance/wasmtime

view this post on Zulip Alex Crichton (Apr 27 2022 at 13:40):

Exposing either the error or a trap code makes sense to me, it's not necessarily intentional it's private we just do that by default to be conservative

view this post on Zulip Saúl Cabrera (May 02 2022 at 15:00):

I meant to get to this earlier, sorry about that. All that makes sense to me, thanks for the context @Alex Crichton ! I can give this one a try if no one else is working on it.

view this post on Zulip Alex Crichton (May 02 2022 at 15:00):

Sounds good to me, feel free!


Last updated: Dec 23 2024 at 13:07 UTC