-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vm) Remove
InstanceHandle::from_vmctx
.
The `InstanceHandle::from_vmctx` method is only used by `CallThreadState::any_instance`, where a given closure expect an `&InstanceHandle`. However, the only closure that exists in the code only reads an `&Instance` from the `InstanceHandle`. So… this patch updates this only closure and `any_instance` to work on an `&Instance` directly, which allows us to remove `InstanceHandle::from_vmctx`. It results to less code and less pointer arithmetic.
- Loading branch information
Showing
2 changed files
with
12 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters