You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow host to malloc from shared heap without module_inst, emplace the data into memory, then decide which module to detach.
we also need a public api to tranlate the shared heap memory addr into module_inst uint64_t addr after attached.
Benefit
This is useful to avoid memory copy, and the context is extract after the io task is done. (context decidce which module_inst to call)
In this case, after the io finished and data is copy into shared heap, you has a chance to verify the data, then decide to create a new module_inst or use a exsits one to attach.