Skip to content

A few small things that were missing in wasm-smith's Wasm GC support#2523

Merged
alexcrichton merged 3 commits into
bytecodealliance:mainfrom
fitzgen:little-wasm-gc-stuff
May 21, 2026
Merged

A few small things that were missing in wasm-smith's Wasm GC support#2523
alexcrichton merged 3 commits into
bytecodealliance:mainfrom
fitzgen:little-wasm-gc-stuff

Conversation

@fitzgen
Copy link
Copy Markdown
Member

@fitzgen fitzgen commented May 19, 2026

See each commit for details.

Part of bytecodealliance/wasmtime#10596

FWIW, I don't think we want to invest in non-null reference support, at least for the foreseeable future. It would require at minimum:

  • A types analysis to figure out which types are uninhabitable due to cycles of non-null references (struct A has a non-null reference of a B; struct B has a non-null reference of an A)
  • Fixing all the spots where we assume we can create a default value if needed, since we can't always do that in this scenario
  • Tracking local initialization

@fitzgen fitzgen requested a review from a team as a code owner May 19, 2026 22:48
@fitzgen fitzgen requested review from alexcrichton and removed request for a team May 19, 2026 22:48
@alexcrichton alexcrichton added this pull request to the merge queue May 21, 2026
Merged via the queue into bytecodealliance:main with commit 2de3c23 May 21, 2026
37 checks passed
@fitzgen fitzgen deleted the little-wasm-gc-stuff branch May 21, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants