Skip to content

Conversation

pavelsavara
Copy link
Member

Fixes #117169

@pavelsavara pavelsavara added this to the 10.0.0 milestone Aug 4, 2025
@pavelsavara pavelsavara requested review from kg and BrzVlad August 4, 2025 18:43
@pavelsavara pavelsavara self-assigned this Aug 4, 2025
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Codegen-AOT-mono wasm-aot-test WebAssembly AOT Test labels Aug 4, 2025
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kg kg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job finding this

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara

This comment was marked as outdated.

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@pavelsavara pavelsavara marked this pull request as ready for review August 5, 2025 17:36
@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 17:36
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes codegen issues for small structs on the WebAssembly stack in AOT compilation. The changes address how empty structs and scalar value types are handled in the WASM backend.

Key changes:

  • Simplifies a conditional expression by removing redundant parentheses
  • Updates empty struct handling to use sbyte instead of int32 as the element type
  • Adds an assertion to ensure the element type is properly set

@lewing lewing enabled auto-merge (squash) August 5, 2025 17:39
@lewing lewing merged commit 0ce54a5 into dotnet:main Aug 5, 2025
33 of 38 checks passed
@lewing
Copy link
Member

lewing commented Aug 5, 2025

/backport to release/9.0-staging

Copy link
Contributor

github-actions bot commented Aug 5, 2025

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/16762797568

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2025
@pavelsavara pavelsavara deleted the wasm_fix_aot_small_struct branch September 10, 2025 13:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono wasm-aot-test WebAssembly AOT Test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WasmTestOnChrome-ST-System.Memory.Tests errors
4 participants