Skip to content

Conversation

@davidwrighton
Copy link
Member

The current behavior was allowing uninitialized data to show up as return values. This preserves all cases I believe to be important.

…he return type be equivalent in stack layout
Copilot AI review requested due to automatic review settings November 1, 2025 00:18
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 1, 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 adds validation for tail call compatibility in the CoreCLR interpreter by introducing a new function DisallowTailCall that checks return type compatibility between caller and callee signatures. The change prevents incompatible tail calls from being executed and properly handles the CEE_JMP instruction when return types don't match.

  • Adds return type validation for tail calls comparing stack types and value class types
  • Integrates the validation into the call emission logic with proper error handling for CEE_JMP

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!

@davidwrighton
Copy link
Member Author

/ba-g all the failures are known infrastructure issues which are either now fixed or under new investigations.

@davidwrighton davidwrighton merged commit b80d8ac into dotnet:main Nov 3, 2025
90 of 96 checks passed
@am11 am11 added area-CodeGen-Interpreter-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 3, 2025
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.

3 participants