-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Milestone
Description
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.
Reactions are currently unavailable