wasm-micro-runtime/samples/shared-module
TianlongLiang c3e33a96ea
Remove unused argument in wasm_runtime_lookup_function and refactor WASMModuleInstance (#3218)
Remove the unused parameter `signature` from `wasm_runtime_lookup_function`.

Refactor the layout of WASMModuleInstance structure:
- move common data members `c_api_func_imports` and `cur_exec_env` from
  `WASMModuleInstanceExtraCommon` to `WASMModuleInstance`
- In `WASMModuleInstance`, enlarge `reserved[3]` to `reserved[5]` in case that
  we need to add more fields in the future

ps.
https://github.com/bytecodealliance/wasm-micro-runtime/issues/2530
https://github.com/bytecodealliance/wasm-micro-runtime/issues/3202
2024-03-13 12:28:45 +08:00
..
src Remove unused argument in wasm_runtime_lookup_function and refactor WASMModuleInstance (#3218) 2024-03-13 12:28:45 +08:00
wasm-apps Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
.gitignore Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
build.sh Build samples in debug mode (#3019) 2024-01-16 09:36:05 +08:00
CMakeLists.txt Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
README.md Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
run.sh Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00

The "shared-module" sample project

This sample demonstrates a bug described in: https://github.com/bytecodealliance/wasm-micro-runtime/issues/2735.