alexcrichton requested wasmtime-core-reviewers for a review on PR #11042.
alexcrichton requested dicej for a review on PR #11042.
alexcrichton opened PR #11042 from alexcrichton:component-instance-pin to bytecodealliance:main:
This commit is the continuation of #10943 for component instances. The allocation/vmctx infrastructure was additionally refactored to be shared for both core and component instances since they behave the exact same way anyway. This further enables sharing various methods like
vmctx_plus_offsetwhich are pretty unsafe internally.Like #10943 this necessitated removal of
Indeximplementations becauseIndexMutis not compatible with the returned type beingPin<&mut T>so they were replaced by inherentgetandget_mutmethods on the component instance id type.Closes #10933
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton commented on PR #11042:
cc @fitzgen you're probably also interested in these refactorings.
fitzgen submitted PR review:
Nice!
fitzgen merged PR #11042.
Last updated: Dec 06 2025 at 07:03 UTC