So https://github.com/bytecodealliance/wasmtime/pull/1761 also proposes API change on what we store in Module
. It drastically changes how Module::new
and Instance::new
works: now Instance needs directly hold Store
and Module
don't. On bright side, we can send Module
across the threads \m/
While here, can we remove the module
field from Instance
?
We will be there after this PR, perhaps :)
@Dan Gohman yeah, this change will not drive API change. I think removing module
requires better CodeMemory
ownership management than we have now.
Last updated: Dec 23 2024 at 14:03 UTC