wasm-micro-runtime/core/iwasm/libraries
Enrico Loparco 7692f32a94
Allow overriding max memory on module instantiation (#3198)
This PR adds a max_memory_pages parameter to module instantiation APIs,
to allow overriding the max memory defined in the WASM module.

Sticking to the max memory defined in the module is quite limiting when
using shared memory in production. If targeted devices have different
memory constraints, many wasm files have to be generated with different
max memory values. And device constraints may not be known in advance.

Being able to set the max memory value during module instantiation allows
to reuse the same wasm module, e.g. by retrying instantiation with different
max memory value.
2024-03-05 17:53:26 +08:00
..
debug-engine Update release notes and fix issues reported by Coverity (#1813) 2022-12-20 14:37:07 +08:00
lib-pthread Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
lib-rats Clarify how to verify SGX evidence without an Intel SGX-enabled platform (#3158) 2024-02-17 18:44:22 +08:00
lib-socket Specify language in the wasi socket ext project (#3183) 2024-02-28 19:35:00 +08:00
lib-wasi-threads Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
libc-builtin Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
libc-emcc Use logger for runtime error/debug prints (#3097) 2024-02-06 13:02:54 +08:00
libc-uvwasi Return uint32 from WASI functions (#2749) 2023-11-13 20:07:32 +08:00
libc-wasi wasi: Apply wasm_runtime_begin_blocking_op to poll as well (#3080) 2024-01-25 16:29:34 +08:00
thread-mgr Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
wasi-nn Remove module instance from hashmap in wasi_nn_destroy (#2613) 2023-10-03 08:33:11 +08:00