Skip to content

Fix RhpThrowImpl on ARM32#125253

Merged
eduardo-vp merged 4 commits intodotnet:mainfrom
eduardo-vp:arm32-naot-exception-tostring
Mar 13, 2026
Merged

Fix RhpThrowImpl on ARM32#125253
eduardo-vp merged 4 commits intodotnet:mainfrom
eduardo-vp:arm32-naot-exception-tostring

Conversation

@eduardo-vp
Copy link
Member

@eduardo-vp eduardo-vp commented Mar 6, 2026

In RhpThrowImpl, before calling INLINE_GETTHREAD we were saving the caller-saved register r0 but we should save r2 as well since it contains the exception kind (it's placed in r2 by RhpThrowEx/RhpThrowExact).

Fixes #123979.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @steveisok, @dotnet/area-system-diagnostics
See info in area-owners.md if you want to be subscribed.

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 re-enables an async stack trace theory test on ARM by removing a platform-specific [ActiveIssue] quarantine from System.Diagnostics.StackTrace tests.

Changes:

  • Removed the [ActiveIssue(..., IsArmProcess)] attribute from ToString_Async, so the test now runs on ARM when async is supported.

@eduardo-vp
Copy link
Member Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@eduardo-vp eduardo-vp marked this pull request as ready for review March 12, 2026 06:32
Copilot AI review requested due to automatic review settings March 12, 2026 06:32
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


You can also share your feedback on Copilot code review. Take the survey.

@eduardo-vp
Copy link
Member Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@eduardo-vp eduardo-vp changed the title Verify failing test Fix RhpThrowImpl on ARM32 Mar 12, 2026
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 12, 2026 21:47
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


You can also share your feedback on Copilot code review. Take the survey.

@eduardo-vp
Copy link
Member Author

/ba-g test failures are on arm64/coreclr while this change only affects arm32/naot

@eduardo-vp eduardo-vp merged commit 6def7ef into dotnet:main Mar 13, 2026
134 of 141 checks passed
Copilot AI pushed a commit that referenced this pull request Mar 13, 2026
In RhpThrowImpl, before calling INLINE_GETTHREAD we were saving the caller-saved register r0 but we should save r2 as well since it contains the exception kind.

Fixes #123979.

---------

Co-authored-by: Eduardo Velarde <evelardepola@microsoft.com>
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arm32 nativeAOT runtime-async Exception.ToString() test failure

4 participants