-
Notifications
You must be signed in to change notification settings - Fork 824
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
feat(vm) Add Instance::offsets
and InstanceHandle::vmoffsets
#2040
Conversation
The idea is to share the `VMOffsets` of a given `Instance` through `InstanceHandle` for advanced users. See wasmerio#2032.
bors try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, waiting for @Geal feedback on that.
tryBuild failed: |
/// Return a reference to the `VMOffsets` to get offsets in the | ||
/// `Self::vmctx_ptr` region. Be careful when doing pointer | ||
/// arithmetic! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if we need to document anything here or if this changes anything in regards to what is public / what we're saying we won't break, but something to keep in mind here!
bors r+ |
Description
This PR adds
Instance::offets
andInstanceHandle::vmoffsets
. It fixes #2032.This PR also cleans up the
mod.rs
module by extracting theInstanceRef
implementation into its ownref.rs
module.Review