Skip to content

JIT: use the second field's GC type for the ldp hi register in genPut… - #135600

Merged
EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:arm64/fix-134066
Oct 14, 2026
Merged

EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:arm64/fix-134066

Conversation

@EgorBo

@EgorBo EgorBo commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

…ArgStk

Fixes #134066

A few diffs

@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 11, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 5 pipeline(s).
11 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The targeted fix matches adjacent load/store handling and includes an appropriate regression test.

0 open findings

What changed in this PR

Corrects ARM64 JIT GC tracking for the second register of an ldp used when passing struct arguments on the stack.

Changes:

  • Uses the second field’s GC type for the high register.
  • Adds a regression test covering fully interruptible execution.
File Description
src/​coreclr/​jit/​codegenarmarch.cpp Corrects the second ldp register’s GC attribute.
src/​tests/​JIT/​Regression_ro_2/​Runtime_134066.cs Adds regression coverage for the faulty stack-argument path.

🧠 Review effort: Balanced

@EgorBo

EgorBo commented Oct 12, 2026

Copy link
Copy Markdown
Member Author

PTAL @dotnet/jit-contrib, simple bug-fix, a few diffs

@EgorBo
EgorBo requested a review from a team October 12, 2026 12:07
@EgorBo
EgorBo merged commit 55d6c84 into dotnet:main Oct 14, 2026
136 of 138 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JIT: (bug) [ARM64] genPutArgStk gives both LDP destination registers the first field's GC type (bogus/missing GC roots)

3 participants