Skip to content

Remove Stored from wasmtime::Instance #10909

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

Merged
merged 2 commits into from
Jun 3, 2025

Conversation

alexcrichton
Copy link
Member

Powered by all previous commits this is a near-trivial change where an
Instance is now more-or-less "just" an InstanceId. Additionally the
host_state: Box<dyn Any> is no longer needed within vm::Instance so
that was removed as well.

This is now a relic of the past now that conversion from the internal
to external representation of Wasmtime items is free. This is
effectively dead code that is no longer needed.
Powered by all previous commits this is a near-trivial change where an
`Instance` is now more-or-less "just" an `InstanceId`. Additionally the
`host_state: Box<dyn Any>` is no longer needed within `vm::Instance` so
that was removed as well.
@alexcrichton alexcrichton requested a review from a team as a code owner June 3, 2025 14:41
@alexcrichton alexcrichton requested review from pchickey and removed request for a team June 3, 2025 14:41
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@fitzgen fitzgen enabled auto-merge June 3, 2025 14:51
@fitzgen fitzgen added this pull request to the merge queue Jun 3, 2025
Merged via the queue into bytecodealliance:main with commit e012eed Jun 3, 2025
43 checks passed
@alexcrichton alexcrichton deleted the refactor-instance branch June 3, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants