wasm-micro-runtime/core/iwasm/interpreter
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
..
iwasm_interp.cmake Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
wasm_interp_classic.c Access linear memory size atomically (#2834) 2023-11-29 20:27:17 +08:00
wasm_interp_fast.c Fix typo in CI config and suppress STORE_U8 in TSAN (#2802) 2023-12-11 09:16:30 +08:00
wasm_interp.h Fix issue of restoring wasm operand stack (#1721) 2022-11-18 18:51:13 +08:00
wasm_loader.c Avoid memory import failure when wasi-threads is enabled (#2893) 2023-12-11 22:17:31 +08:00
wasm_loader.h Fix build error when enable custom section without interpreter (#1229) 2022-06-15 18:14:39 +08:00
wasm_mini_loader.c Fix block with type issue in fast interp (#2866) 2023-12-05 17:09:05 +08:00
wasm_opcode.h Fix data races in atomic wait/notify and interp goto table (#1971) 2023-02-22 11:43:49 +08:00
wasm_runtime.c Change is_shared_memory type from bool to uint8 (#2800) 2023-11-22 10:38:08 +08:00
wasm_runtime.h Change is_shared_memory type from bool to uint8 (#2800) 2023-11-22 10:38:08 +08:00
wasm.h Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00