wasm-micro-runtime/core/iwasm
Enrico Loparco 4aee3cf14e
Avoid memory import failure when wasi-threads is enabled (#2893)
According to the specification:
```
When instantiating a module which is expected to run
with `wasi-threads`, the WASI host must first allocate shared memories to
satisfy the module's imports.
```
Currently, if a test from the spec is executed while having the `multi-module`
feature enabled, WAMR fails with `WASM module load failed: unknown import`.
That happens because spec tests use memory like this:
  `(memory (export "memory") (import "foo" "bar") 1 1 shared)`
and WAMR tries to find a registered module named `foo`.

At the moment, there is no specific module name that can be used to identify
that the memory is imported because using WASI threads:
  https://github.com/WebAssembly/wasi-threads/issues/33,
so this PR only avoids treating the submodule dependency not being found
as a failure.
2023-12-11 22:17:31 +08:00
..
aot Refactor reloc symbols for riscv (#2894) 2023-12-11 14:44:41 +08:00
common Fix typo in CI config and suppress STORE_U8 in TSAN (#2802) 2023-12-11 09:16:30 +08:00
compilation Fix compilation warnings on Windows (#2868) 2023-12-06 16:12:33 +08:00
doc Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00
fast-jit Fix fast-jit accessing shared memory's fields issue (#2841) 2023-12-01 17:41:24 +08:00
include Update version number to 1.3.0 and update release notes (#2821) 2023-12-06 16:27:21 +08:00
interpreter Avoid memory import failure when wasi-threads is enabled (#2893) 2023-12-11 22:17:31 +08:00
libraries Handle ambiguous fstflags on fd_filestat_set_times (#2892) 2023-12-11 14:16:58 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00