wasm-micro-runtime/tests/unit
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
..
aot Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
aot-stack-frame Fixed unit tests on X86_32 (#4279) 2025-05-19 10:32:07 +08:00
common Add unit test suites (#3490) 2024-06-04 11:24:27 +08:00
compilation Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
custom-section Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
gc Update unit test cases (#4214) 2025-04-25 14:43:24 +08:00
interpreter Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
libc-builtin Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
linear-memory-aot Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
linear-memory-wasm Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
linux-perf Add unit test suites (#3490) 2024-06-04 11:24:27 +08:00
memory64 Collective fix (#4413) 2025-06-26 10:20:40 +08:00
running-modes Collective fix (#4413) 2025-06-26 10:20:40 +08:00
runtime-common Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
shared-heap Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
shared-utils Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
tid-allocator Add unit test suites (#3490) 2024-06-04 11:24:27 +08:00
wasm-c-api Fixed unit tests on X86_32 (#4279) 2025-05-19 10:32:07 +08:00
wasm-vm Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
CMakeLists.txt Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
unit_common.cmake Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00