Skip to content

Don't pass vmctx to component libcalls #10937

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

Conversation

alexcrichton
Copy link
Member

Take a leaf out of the core libcalls book where the from_vmctx call is baked in as part of each libcall so libcalls can receive safer arguments by default. There's still much unsafe in the libcalls due to their arguments or accessing *instance.store(), but this latter part will be fixed in a follow-up commit soon.

Take a leaf out of the core libcalls book where the `from_vmctx` call is
baked in as part of each libcall so libcalls can receive safer arguments
by default. There's still much `unsafe` in the libcalls due to their
arguments or accessing `*instance.store()`, but this latter part will be
fixed in a follow-up commit soon.
@alexcrichton alexcrichton requested a review from a team as a code owner June 5, 2025 20:54
@alexcrichton alexcrichton requested review from pchickey and removed request for a team June 5, 2025 20:54
@alexcrichton alexcrichton force-pushed the component-libcalls-safe branch from d81804f to 18b4525 Compare June 5, 2025 21:10
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Jun 5, 2025
@alexcrichton alexcrichton added this pull request to the merge queue Jun 5, 2025
Merged via the queue into bytecodealliance:main with commit 239936b Jun 6, 2025
41 checks passed
@alexcrichton alexcrichton deleted the component-libcalls-safe branch June 6, 2025 00:03
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