wasm-micro-runtime/core/iwasm/interpreter
TianlongLiang 8a55a1e7a1
Shared heap enhancements for Interpreter and AOT (#4400)
Propose two enhancements:

- Shared heap created from preallocated memory buffer: The user can create a shared heap from a pre-allocated buffer and see that memory region as one large chunk; there's no need to dynamically manage it(malloc/free). The user needs to make sure the native address and size of that memory region are valid.
- Introduce shared heap chain: The user can create a shared heap chain, from the wasm app point of view, it's still a continuous memory region in wasm app's point of view while in the native it can consist of multiple shared heaps (each of which is a continuous memory region). For example, one 500MB shared heap 1 and one 500 MB shared heap 2 form a chain, in Wasm's point of view, it's one 1GB shared heap.

After these enhancements, the data sharing between wasm apps, and between hosts can be more efficient and flexible. Admittedly shared heap management can be more complex for users, but it's similar to the zero-overhead principle. No overhead will be imposed for the users who don't use the shared heap enhancement or don't use the shared heap at all.
2025-07-04 10:44:51 +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 Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wasm_interp_fast.c Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wasm_interp.h Calculate func_index instead of adding an extra field to wasm frame 2025-01-28 11:09:32 +00:00
wasm_loader.c loader: fix a potential overflow issue (#4427) 2025-06-30 12:57:57 +08:00
wasm_loader.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
wasm_mini_loader.c Collective fix for typos and minor bugs (#4369) 2025-06-17 09:26:00 +08:00
wasm_opcode.h Add select 128 (#4236) 2025-05-14 12:35:56 +08:00
wasm_runtime.c Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wasm_runtime.h Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wasm.h Enhance type checking for function types in loader and improve error handling (#4294) 2025-05-28 20:29:09 +08:00