Skip to content

Remove uses of dynamic memory allocations #333

@dadada

Description

@dadada

The interpreter makes use of dynamic memory management in some cases. One example of this is the public interface for calling functions exported from WebAssembly modules, where arguments are passed as Vec. This is can generally fail with a panic, since allocations may fail if the allocator cannot allocate more memory (e.g. OOM condition). It is however fine in general to perform these allocations either failable and have appropriate error handling or even better only perform dynamic memory allocations once during an initialization phase. So for example, when a new module / store is allocated in the interpreter, this could use alloc, depending on the time the module is loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions