alexcrichton edited PR #10803.
alexcrichton edited PR #10803:
Currently Wasmtime has a function
crate::runtime::vm::host_page_size
but this isn't reachable from thewasmtime-fibercrate and instead tha
crate usesrustix::param::page_sizeto determine the host page size.
It looks like this usage ofrustixis causing a panic in https://github.com/bytecodealliance/wasmtime/issues/10802.
Ideallywasmtime-fiberwould be able to use the same function but the
crate separation does not currently make that feasible. For now
duplicate the logic ofwasmtimeintowasmtime-fiberas it's modest
enough to ensure that this does not panic.Closes https://github.com/bytecodealliance/wasmtime/issues/10802
alexcrichton requested wasmtime-core-reviewers for a review on PR #10803.
alexcrichton requested dicej for a review on PR #10803.
alexcrichton commented on PR #10803:
I don't believe the CI failure is easily addressable with the previous design so I opted to duplicate the definition of
host_page_sizefrom thewasmtimecrate into thewasmtime-fibercrate instead of passing it in as a parameter. That I think is regrettable duplication but "at least it's now commented duplication" and also fixes the panic for now.I've also re-rolled review since Pat is on vacation right now since this has now changed substantially enough that I don't want to carry over the previous approval.
alexcrichton updated PR #10803.
alexcrichton commented on PR #10803:
I'm actually going to go ahead and flag this for merge. Apparently using this syscall prevents using
rrwith Wasmtime (rr crashes locally) so I'd like to get that fixed. If others have further comments on this I'm happy to handle them in follow-ups.
alexcrichton merged PR #10803.
Last updated: Dec 06 2025 at 07:03 UTC