Skip to content

Conversation

BrzVlad
Copy link
Member

@BrzVlad BrzVlad commented Oct 15, 2025

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 Copilot AI review requested due to automatic review settings October 15, 2025 10:20
Copy link
Contributor

@Copilot 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 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

Copy link
Contributor

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

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@jkotas
Copy link
Member

jkotas commented Oct 15, 2025

/ba-g recently fixed known issue #120577

@jkotas jkotas merged commit 0327b0d into dotnet:main Oct 15, 2025
97 of 99 checks passed
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.

4 participants