wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

Allow not copying the wasm binary into the module when using WASM C API

Open eloparco opened this issue 2 months ago • 12 comments

The wasm_module_new function copies the WASM binary passed as an argument into the module. This PR allows passing an additional flag to wasm_module_new_ex, to avoid that copy. In that way, the binary can be manually released after module instantiation (instead of having to wait for the store to be destroyed).

eloparco avatar May 03 '24 15:05 eloparco