wasm-micro-runtime/core
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
..
app-framework Readme refactoring (#2038) 2023-03-19 08:05:57 +08:00
app-mgr Corrects Zephyr include files for current versions of Zephyr (#2881) 2023-12-08 17:16:16 +08:00
deps wasi-nn: Simplify cmake and headers' location (#2308) 2023-06-26 09:29:05 +08:00
iwasm Avoid memory import failure when wasi-threads is enabled (#2893) 2023-12-11 22:17:31 +08:00
shared Fix compilation warnings on Windows (#2868) 2023-12-06 16:12:33 +08:00
config.h Fix comment in WAMR_MEM_DUAL_BUS_MIRROR (#2791) 2023-11-20 10:25:00 +08:00
version.h Update version number to 1.3.0 and update release notes (#2821) 2023-12-06 16:27:21 +08:00