Stream: git-wasmtime

Topic: wasmtime / PR #12908 winch: Fix `memory.size` on maximall...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:20):

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.size instruction would return 0 instead of returning 0x1_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:

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 (Mar 31 2026 at 13:20):

alexcrichton requested cfallin for a review on PR #12908.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:20):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #12908.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:20):

alexcrichton requested wasmtime-core-reviewers for a review on PR #12908.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:49):

alexcrichton updated PR #12908.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 15:18):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 15:18):

cfallin added PR #12908 winch: Fix memory.size on maximally-sized 32-bit memories to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 15:56):

cfallin removed PR #12908 winch: Fix memory.size on maximally-sized 32-bit memories from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 15:56):

cfallin merged PR #12908.


Last updated: Apr 12 2026 at 23:10 UTC