Skip to content

Can I somehow share memory between dependency modules? #2363

Answered by lum1n0us
NinevskiyK asked this question in Q&A
Discussion options

You must be logged in to vote

Because every instance has its own liner memory in this case, worker can not see the content in main's memory directly.

Using wasm_runtime_module_malloc is one possible way. It needs additional help from host. In that scenario, host will manage the lifecyle of mas (allocation and release). Host will dispatch mas to worker and other processores(if exist).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@NinevskiyK
Comment options

@lum1n0us
Comment options

@NinevskiyK
Comment options

Answer selected by NinevskiyK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants