wasm-micro-runtime/core/iwasm/interpreter
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
..
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 fast-interp: Fix GC opcode ref.as_non_null (#3156) 2024-02-17 11:54:49 +08:00
wasm_interp_fast.c fast-interp: Fix GC opcode ref.as_non_null (#3156) 2024-02-17 11:54:49 +08:00
wasm_interp.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
wasm_loader.c Fix dynamic offset in BR for block with return type (#3192) 2024-03-01 10:15:17 +08:00
wasm_loader.h Fix build error when enable custom section without interpreter (#1229) 2022-06-15 18:14:39 +08:00
wasm_mini_loader.c Fix dynamic offset in BR for block with return type (#3192) 2024-03-01 10:15:17 +08:00
wasm_opcode.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
wasm_runtime.c Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
wasm_runtime.h Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
wasm.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00