Stream: git-wasmtime

Topic: wasmtime / PR #12138 filesystem: Paper over fadvise harml...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 08 2025 at 11:53):

wingo opened PR #12138 from wingo:macos-fadvise-willneed-oob to bytecodealliance:main:

On macos and ios, fadvise is only implemented for WillNeed and dispatches via the system-interface crate to the F_RDADVISE fcntl. If you call WillNeed on an out-of-bounds offset, this fcntl returns FileTooLarge. Here we paper over this harmless error code to avoid this needless platform-dependent nonuniformity. Should fix wasmtime for https://github.com/WebAssembly/wasi-testsuite/issues/178.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Dec 08 2025 at 11:53):

wingo requested wasmtime-wasi-reviewers for a review on PR #12138.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 08 2025 at 13:29):

rvolosatovs created PR review comment:

            Error(ErrorCode::FileTooLarge) if advice == system_interface::fs::Advice::WillNeed => Ok(()),

view this post on Zulip Wasmtime GitHub notifications bot (Dec 08 2025 at 13:29):

rvolosatovs submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 08 2025 at 13:29):

rvolosatovs created PR review comment:

into() looks redundant?

view this post on Zulip Wasmtime GitHub notifications bot (Dec 08 2025 at 13:29):

rvolosatovs submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 09 2025 at 15:52):

wingo updated PR #12138.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 09 2025 at 15:58):

wingo updated PR #12138.


Last updated: Dec 13 2025 at 19:03 UTC