-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sub-proposal: virtual
mode
#18
Comments
I don't think you can use |
I think you're right, and the "unmap" operation should probably be implemented by another PROT_NONE instead. As far as I'm aware, this should free any physical resources and reduce commit. |
Why is it important for the failure mode of the instructions (primarily It limits the ability of the WASM application to handle error conditions like out of memory gracefully. Consider, for example, that Edit: |
Yeah, that's also a good point. Returning -1 could probably work just fine for I'm not sure that the other operations need to return error codes, but if they can reasonably fail under normal conditions, perhaps they should. Off the top of my head, though, I'm not aware though of any failures cases that would arise from correct use of system memory APIs after the memory has already been mapped. |
This issue tracks discussion of the
virtual
mode sub-proposal. This proposal is one possible component of the eventual Memory Control MVP. Please make sure to read the full sub-proposal document.The text was updated successfully, but these errors were encountered: