smoldot icon indicating copy to clipboard operation
smoldot copied to clipboard

Use the allocator to allocate the input data in the VM

Open tomaka opened this issue 5 years ago • 1 comments

According to @pepyakin it's a bit ambiguous whether the input data is supposed to known to the allocator.

tomaka avatar Oct 30 '20 10:10 tomaka

The main difficulty of this issue is that the allocator needs access to the memory of the Wasm in order to allocate, but in the current API this memory is only accessible after the VM has started, and in order for the VM to start we need to pass as input the pointer that the allocator has allocated. In other words, a snake biting its tail.

Before fixing this, we need to figure out whether the VM is supposed to clear its memory between runtime calls.

tomaka avatar May 14 '21 08:05 tomaka