Skip to content

Allow malloc from shared heap without module_inst #4241

@calvin2021y

Description

@calvin2021y

Feature

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions