Skip to content

Conversation

@alexcrichton
Copy link
Member

One test case I wrote recently was to import a lowered function into a
wasm module and then immediately export it. This previously didn't work
because trampoline lookup would fail as the original
VMCallerCheckedAnyfunc function pointer points into the
trampoline_obj of a component which wasn't registered with the
ModuleRegistry. This plumbs through the necessary configuration to get
that all hooked up.

One test case I wrote recently was to import a lowered function into a
wasm module and then immediately export it. This previously didn't work
because trampoline lookup would fail as the original
`VMCallerCheckedAnyfunc` function pointer points into the
`trampoline_obj` of a component which wasn't registered with the
`ModuleRegistry`. This plumbs through the necessary configuration to get
that all hooked up.
@alexcrichton alexcrichton requested a review from fitzgen June 22, 2022 19:39
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Jun 22, 2022
@github-actions
Copy link

Subscribe to Label Action

cc @peterhuene

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

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

  • peterhuene: wasmtime:api

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.

LGTM!

@alexcrichton alexcrichton merged commit 445cc87 into bytecodealliance:main Jun 23, 2022
@alexcrichton alexcrichton deleted the component-more-trampolines branch June 23, 2022 14:41
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants