Skip to content

JIT: Make struct padding test layout explicit - #137627

Merged
jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:fix-137235
Nov 16, 2026
Merged

jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:fix-137235

Conversation

@jakobbotsch

@jakobbotsch jakobbotsch commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The test above is testing padding of this struct. For the test to be valid, the struct must be ExplicitLayout -- otherwise we are allowed to discard padding in our model.

Fix #137235

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 1e28b91b-1d42-4ad8-a960-c86aba6b48ec
@github-actions github-actions Bot added the area-Infrastructure-coreclr Only use for closed issues label Nov 16, 2026
@jakobbotsch jakobbotsch added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI and removed area-Infrastructure-coreclr Only use for closed issues labels Nov 16, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jakobbotsch

Copy link
Copy Markdown
Member Author

cc @dotnet/jit-contrib PTAL @AndyAyersMS

Simple test bug.

@jakobbotsch
jakobbotsch merged commit cbefd14 into dotnet:main Nov 16, 2026
85 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Test failure: _Structs_structcopies::TestStructFields.Program.WritesToPromotedPadding

3 participants