Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit is a further inch towards #11179 by removing internal reliance on reading VMContext pointers and casting them to Pin<&mut Instance> in various contexts. Notably now only a defined table needs to be grown, which simplifies the internals of vm::Instance ever so slightly. This is a similar change as #11211 which transitions libcalls to using DefinedTableIndex instead of TableIndex.

This commit is a further inch towards bytecodealliance#11179 by removing internal
reliance on reading `VMContext` pointers and casting them to `Pin<&mut
Instance>` in various contexts. Notably now only a defined table needs
to be grown, which simplifies the internals of `vm::Instance` ever so
slightly. This is a similar change as bytecodealliance#11211 which transitions libcalls
to using `DefinedTableIndex` instead of `TableIndex`.
@alexcrichton alexcrichton requested review from a team as code owners July 11, 2025 01:24
@alexcrichton alexcrichton requested review from abrown and fitzgen and removed request for a team July 11, 2025 01:24
@github-actions github-actions bot added wasmtime:api Related to the API of the `wasmtime` crate itself winch Winch issues or pull requests labels Jul 11, 2025
@github-actions
Copy link

Subscribe to Label Action

cc @saulecabrera

This issue or pull request has been labeled: "wasmtime:api", "winch"

Thus the following users have been cc'd because of the following labels:

  • saulecabrera: winch

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

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 added this pull request to the merge queue Jul 11, 2025
Merged via the queue into bytecodealliance:main with commit 1b57186 Jul 11, 2025
42 checks passed
@alexcrichton alexcrichton deleted the remove-vm-table-grow branch July 11, 2025 16:58
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
This commit is a further inch towards bytecodealliance#11179 by removing internal
reliance on reading `VMContext` pointers and casting them to `Pin<&mut
Instance>` in various contexts. Notably now only a defined table needs
to be grown, which simplifies the internals of `vm::Instance` ever so
slightly. This is a similar change as bytecodealliance#11211 which transitions libcalls
to using `DefinedTableIndex` instead of `TableIndex`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself winch Winch issues or pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants