-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Redesign VM output management #3318
Comments
|
Sounds good! The question would be: How much will be retained? The full memory of the callee or will the return part be copied somewhere else in between? I think it should be quite safe to retain the full memory because it will be deleted in the next step. |
Exactly. You return full memory and the reference to the output buffer On Wed, Oct 5, 2016, 00:37 chriseth [email protected] wrote:
|
I would like to propose change in the VM-related API. Now the user have to provide the output buffer where the VM will copy the output (it comes from current CALL semantics).
I want to change that to return the output buffer reference with attached virtual destructor to the user. The user is responsible to copy whatever it wants and release the buffer.
This should be aligned with:
The text was updated successfully, but these errors were encountered: