Skip to content

Update JIT interface to help reduce shared stubs #118462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

AaronRobinsonMSFT
Copy link
Member

In order to reduce the need for shared stubs, we
need some additional information for vararg
signatures.

See #117901 for use case.

In order to reduce the need for shared stubs, we
need some additional information for vararg
signatures.
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 modifies the JIT interface to add a CORINFO_METHOD_HANDLE parameter to the getVarArgsHandle method, providing additional context for vararg signatures to help reduce the need for shared stubs.

Key changes:

  • Added CORINFO_METHOD_HANDLE methHnd parameter to getVarArgsHandle method signature
  • Updated all implementations and wrappers to pass through the new parameter
  • Updated versioning GUID to reflect the interface change

Reviewed Changes

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

Show a summary per file
File Description
src/coreclr/inc/corinfo.h Updated the interface definition to include the new method handle parameter
src/coreclr/vm/jitinterface.cpp Modified the main implementation to accept the new parameter and pass NULL in the P/Invoke case
src/coreclr/jit/importercalls.cpp Updated the JIT call site to pass the method handle
src/coreclr/tools/superpmi/* Updated all SuperPMI-related files to handle the new parameter in recording/replaying
src/coreclr/tools/aot/jitinterface/* Updated AOT JIT interface files to support the new parameter
src/coreclr/tools/Common/JitInterface/* Updated common JIT interface implementations for the new signature
src/coreclr/inc/jiteeversionguid.h Updated the JIT/EE version GUID to reflect the interface change

@jkotas
Copy link
Member

jkotas commented Aug 6, 2025

(@dotnet/jit-contrib should sign-off as well.)

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit de93e0a into dotnet:main Aug 7, 2025
95 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the update_jit_interface branch August 7, 2025 18:29
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