Repository navigation
feat: (CM64) Validate 64bit waitables - #2514
Merged
alexcrichton merged 6 commits intoMay 18, 2026
Merged
Conversation
michael-weigelt
commented
May 6, 2026
5 of 9 tasks
michael-weigelt
marked this pull request as ready for review
May 15, 2026 12:12
michael-weigelt
requested review from
alexcrichton
and removed request for
a team
May 15, 2026 12:12
alexcrichton
approved these changes
May 15, 2026
alexcrichton
left a comment
Member
There was a problem hiding this comment.
Thanks! Would it be possible to add tests for wit-component as well? Or is that something you'd prefer to defer to a future PR?
Contributor
Author
Sure, I'll add them to this PR. |
Member
|
Talked with @michael-weigelt on Zulip, determined seems best to test wit-component through future PRs |
imikushin
pushed a commit
to imikushin/wasm-tools
that referenced
this pull request
Nov 6, 2026
) This commit is a start to support the `cm64` feature in wit-component itself. This is intended to start plumbing necessary knobs, variables, etc, to be able to produce a component when the linear memory uses a 64-bit index type instead of today's 32-bit index type. No output from today is expected to change, but modules using a 64-bit linear memory are intended to, in theory "just start working" with this. Note that this is not yet fully complete. The goal of this commit is to set up a lot of the initial plumbing for index types but there are a few notable exceptions to supporting this: 1. Exported functions taking a `borrow<T>` which is owned by the component itself do not work correctly. These incorrectly are expected to take `i32` instead of the resource's `rep` field, in this case `i64`. Part of this is bytecodealliance#2804 where `wasmparser`'s validation needs to be updated, but part of this is that larger `wit-parser` changes are going to be necessary since it's not as simple to produce the core wasm signature of a WIT function any more. Overall this is untested at this time and deferred to a future change. 2. The `wasm-tools component link` command does not yet work. That stage still only supports 32-bit modules and 64-bit modules is entirely unsupported. That's intended to come as a future change as well. 3. The `wasm-tools component embed --dummy` subcommand only supports 32-bit memories so far and doesn't support 64-bit just yet. The general intent here is to fill out the "easy" part of memory64 support to move the needle a bit on supporting it. Wasmtime does not yet support this, for example, but that doesn't meant that tooling shouldn't. In theory this should make the next sufficiently-motivated individual to work on cm64 have a little less work to do. One final notable part of this PR is that this removes the interim names added for some intrinsics in initial cm64 support. Specifically the support added in bytecodealliance#2502 and bytecodealliance#2514 is removed where the types required and involved are inferred and don't need explicit annotation in the import name itself. This is intended to make bindings easier to generate (just need the types to be right, not the names), and it's expected that no existing generator is relying on these names just yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is part of a series of PRs to enable verification of 64bit components.. The effort is tracked here.
This PR allows
waitable-set.{wait, poll}to validate with bothi64andi32memories.