Stream: wasmtime

Topic: Multithreading and reentrancy


view this post on Zulip Dag Ågren (Oct 06 2020 at 19:07):

Hey, what's the state of this issue? It doesn't seem to have had any updates at all: https://github.com/bytecodealliance/wasmtime/issues/888

I've noticed that there's a few issues related to threads lying around, so I figure it's a good idea to go ahead and open a dedicated tracking issue for various work items. The work her...

view this post on Zulip Dag Ågren (Oct 06 2020 at 19:09):

I personally need a way to call into WASM from two different threads at the same time. Don't care about threads on the WASM side that much, just need to be able to call into a two different functions on different threads at the same time.

view this post on Zulip Alex Crichton (Oct 06 2020 at 19:10):

If you need to call two separate wasm instances, that's safe to do so long as they're within different Store objects. Otherwise you can't share a Store or anything within (including an Instance) across threads

view this post on Zulip Alex Crichton (Oct 06 2020 at 19:10):

at this time the threads proposal for wasm isn't fully implemented in Wasmtime, namely shared memories are not implemented

view this post on Zulip Dag Ågren (Oct 06 2020 at 19:20):

No, need specifically the same memory.

view this post on Zulip Alex Crichton (Oct 06 2020 at 19:26):

ah ok, yes that is not currently supported in wasmtime

view this post on Zulip Dag Ågren (Oct 06 2020 at 19:28):

Any guess at when it might be? That is, should I look for a different solution or is it something planned for the nearish future?

view this post on Zulip Alex Crichton (Oct 06 2020 at 19:32):

I don't believe there's a schedule yet to implement this, but this also would likely be a "modest" amount of work, it's not a huge project to implement in Wasmtime

view this post on Zulip Dag Ågren (Oct 07 2020 at 21:14):

I figured maybe WAMR's AoT would serve me better for this, but it's failing to run anything...

view this post on Zulip Dag Ågren (Oct 07 2020 at 21:15):

Is there a chat anywhere for WAMR?

view this post on Zulip Andrew Brown (Oct 08 2020 at 16:12):

@Wang Xin is the person to talk to


Last updated: Oct 23 2024 at 20:03 UTC