alexcrichton opened PR #12908 from alexcrichton:fix-winch-aarch64-memory-size-on-max-size-memory to bytecodealliance:main:
This commit fixes a minor issue in the Winch backend where when a 32-bit linear memory had the full 4GiB size the
memory.sizeinstruction would return 0 instead of returning0x1_0000. This is due to the shift to create the number of pages being done with the index type of the linear memory instead of the pointer size of the machine.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested cfallin for a review on PR #12908.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #12908.
alexcrichton requested wasmtime-core-reviewers for a review on PR #12908.
alexcrichton updated PR #12908.
cfallin submitted PR review.
cfallin added PR #12908 winch: Fix memory.size on maximally-sized 32-bit memories to the merge queue.
cfallin removed PR #12908 winch: Fix memory.size on maximally-sized 32-bit memories from the merge queue.
cfallin merged PR #12908.
Last updated: Apr 12 2026 at 23:10 UTC