-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Update JIT interface to help reduce shared stubs #118462
Conversation
In order to reduce the need for shared stubs, we need some additional information for vararg signatures.
There was a problem hiding this 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 togetVarArgsHandle
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 |
src/coreclr/tools/Common/JitInterface/ThunkGenerator/ThunkInput.txt
Outdated
Show resolved
Hide resolved
(@dotnet/jit-contrib should sign-off as well.) |
In order to reduce the need for shared stubs, we
need some additional information for vararg
signatures.
See #117901 for use case.