Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[clr-interp] Fix cconv issue in InterpreterStub on linux-x64#120738

Merged
jkotas merged 1 commit into
dotnet:mainfrom
BrzVlad:fix-clrinterp-stub
Oct 15, 2025
Merged

[clr-interp] Fix cconv issue in InterpreterStub on linux-x64#120738
jkotas merged 1 commit into
dotnet:mainfrom
BrzVlad:fix-clrinterp-stub

Conversation

@BrzVlad

@BrzVlad BrzVlad commented Oct 15, 2025

Copy link
Copy Markdown
Member

It seems like this code was copied over from windows version, with minor oversight leading to passing first arg in rcx instead of rdi.

It seems like this code was copied over from windows version, with minor oversight leading to passing first arg in rcx instead of rdi.
Copilot AI review requested due to automatic review settings October 15, 2025 10:20

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.

Pull Request Overview

This PR fixes a calling convention issue in the InterpreterStub assembly code for linux-x64. The code was incorrectly using the Windows calling convention (passing the first argument in rcx) instead of the System V ABI calling convention used on Linux (passing the first argument in rdi).

Key Changes

  • Updates the register used for the first function argument from rcx to rdi in the InterpreterStub assembly code
  • Aligns the code with the correct calling convention for linux-x64 platform

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@janvorli janvorli 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, thank you!

@jkotas

jkotas commented Oct 15, 2025

Copy link
Copy Markdown
Member

/ba-g recently fixed known issue #120577

@jkotas jkotas merged commit 0327b0d into dotnet:main Oct 15, 2025
97 of 99 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants