Skip to content

Fix debugger func-eval support for 64-bit RAK_REGREG value types - #136933

Merged
jkoritzinsky merged 1 commit into
mainfrom
fix/funceval-64bit-regreg
Nov 4, 2026
Merged

jkoritzinsky merged 1 commit into
mainfrom
fix/funceval-64bit-regreg

Conversation

@jkoritzinsky

Copy link
Copy Markdown
Member

Enable debugger func-eval to consume value-type arguments held in two registers on 64-bit platforms instead of failing with ArgumentNullException.

  • Capture both native-sized register values in contiguous, GC-protected storage and use that storage for managed argument preparation.
  • Widen register write-back to support value types up to two native words.
  • Match managed/native field ordering and payload offsets under BIGENDIAN, while preserving 32-bit register/memory homes.

Validation:

  • ./build.sh clr+libs+host — failed during restore because NuGet vulnerability data was unavailable.
  • ./build.sh clr+libs+host /p:NuGetAudit=false — failed during restore because required packages could not be downloaded from Azure NuGet feeds; compilation did not run.
  • python3 /root/.copilot/session-state/8226d765891942ee917a8ce42f296038/files/validate_funceval.py — passed isolated checks using extracted native helpers with simulated 32-/64-bit words and both endian branches, plus managed layout/payload-offset checks. This session-local harness is not part of the PR.
  • git diff --check — passed.

Full runtime builds, debugger end-to-end tests, and execution on a big-endian runtime were not completed.

Resolves #135231

Note

This pull request was generated with GitHub Copilot.

@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: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

@tommcdon tommcdon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@jkoritzinsky
jkoritzinsky merged commit 8fd445b into main Nov 4, 2026
102 of 104 checks passed
@jkoritzinsky
jkoritzinsky deleted the fix/funceval-64bit-regreg branch November 4, 2026 22:34
@github-project-automation github-project-automation Bot moved this to Done in AppModel Nov 4, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Debugger func-eval cannot consume a 64-bit RAK_REGREG value-type argument

3 participants