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

Clone data segments when specified with load args

Open eloparco opened this issue 1 year ago • 0 comments

Follow-up on https://github.com/bytecodealliance/wasm-micro-runtime/pull/3389, specifically: https://github.com/bytecodealliance/wasm-micro-runtime/pull/3389#discussion_r1600872451

If we want to free the wasm binary buffer early, we need to clone the data segments into the module. That's because, in case of passive data segments, they can be referred during wasm execution.

eloparco avatar May 22 '24 09:05 eloparco