Skip to content

Conversation

@EgorBo
Copy link
Member

@EgorBo EgorBo commented Sep 13, 2025

Closes #119571 per #119571 (comment)

I've validated the fix on the actual repro.

Copilot AI review requested due to automatic review settings September 13, 2025 09:51
@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 Sep 13, 2025
Copy link
Contributor

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 a bug in the JIT compiler's address mode generation where immediate values requiring relocation were incorrectly being treated as constants that could be folded into addressing modes.

  • Adds a check to prevent folding relocatable immediate values into address modes
  • Fixes potential runtime issues when handling constants that need relocation

@dotnet-policy-service
Copy link
Contributor

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@EgorBo EgorBo merged commit 460f095 into dotnet:main Sep 16, 2025
113 checks passed
@EgorBo
Copy link
Member Author

EgorBo commented Sep 16, 2025

/backport to release/10.0

@github-actions
Copy link
Contributor

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/17766163590

@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2025
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.

AccessViolationException from net10-rc1 NativeAOT builds only (win-x64 and ios-arm64 tested).

2 participants