So https://github.com/bytecodealliance/wasmtime/pull/1761 also proposes API change on what we store in Module. It drastically changes how Module::newand Instance::new works: now Instance needs directly hold Storeand 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 06 2025 at 06:05 UTC