wasm-micro-runtime/core/iwasm
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
..
aot Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
common Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
compilation lldb_function_to_function_dbi: A hack to avoid crashing on C++ methods (#3190) 2024-03-04 17:08:11 +08:00
doc Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00
fast-jit Fix llvm jit push funcref/externref result type issue (#3169) 2024-02-21 12:15:18 +08:00
include Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
interpreter Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
libraries Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00