Skip to content

Cranelift: fix Windows unwind info. - #14643

Merged
cfallin merged 2 commits into
bytecodealliance:mainfrom
cfallin:fix-windows-unwind
Oct 10, 2026
Merged

cfallin merged 2 commits into
bytecodealliance:mainfrom
cfallin:fix-windows-unwind

Conversation

@cfallin

@cfallin cfallin commented Oct 9, 2026

Copy link
Copy Markdown
Member

Fixes two separate issues:

  • Scale factor for SaveReg should be 8, not 16; the encoded offset was off by a factor of two.
  • We need to emit a StackAlloc op to align the implicit frame with reality.

The unwind info is not correctness-critical for Wasmtime (we have our own unwinder) but could matter for native debugging or profiling on Windows systems.

Fixes two separate issues:
- Scale factor for SaveReg should be 8, not 16; the encoded offset was
  off by a factor of two.
- We need to emit a StackAlloc op to align the implicit frame with
  reality.

The unwind info is not correctness-critical for Wasmtime (we have our
own unwinder) but could matter for native debugging or profiling on
Windows systems.
@cfallin
cfallin requested a review from a team as a code owner October 9, 2026 23:38
@cfallin
cfallin requested review from alexcrichton and removed request for a team October 9, 2026 23:38
@alexcrichton
alexcrichton added this pull request to the merge queue Oct 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 10, 2026
@github-actions github-actions Bot added the cranelift Issues related to the Cranelift code generator label Oct 10, 2026
@cfallin
cfallin enabled auto-merge October 10, 2026 04:26
@cfallin
cfallin added this pull request to the merge queue Oct 10, 2026
Merged via the queue into bytecodealliance:main with commit de62673 Oct 10, 2026
53 checks passed
@cfallin
cfallin deleted the fix-windows-unwind branch October 10, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants