Skip to content

Reduce number of locations host page size comes from #10803

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexcrichton
Copy link
Member

Currently Wasmtime has a function crate::runtime::vm::host_page_size but this is only used sometimes and the rest of the time rustix::param::page_size is used in a few locations. It looks like this usage of rustix is causing a panic in #10802 and additionally it's best to only have one source for this, so this commit updates this all to route through our preexisting host_page_size function.

@alexcrichton alexcrichton requested review from a team as code owners May 19, 2025 12:52
@alexcrichton alexcrichton requested review from pchickey and removed request for a team May 19, 2025 12:52
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label May 19, 2025
Currently Wasmtime has a function `crate::runtime::vm::host_page_size`
but this is only used sometimes and the rest of the time
`rustix::param::page_size` is used in a few locations. It looks like
this usage of `rustix` is causing a panic in bytecodealliance#10802 and additionally
it's best to only have one source for this, so this commit updates this
all to route through our preexisting `host_page_size` function.
@alexcrichton alexcrichton force-pushed the remove-rustix-page-size branch from 2f4bbc6 to 37e8216 Compare May 20, 2025 12:18
@alexcrichton alexcrichton enabled auto-merge May 20, 2025 12:19
@alexcrichton alexcrichton added this pull request to the merge queue May 20, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 20, 2025
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