Remove unused PInvokeTransitionFrame_MAX_SIZE and PInvokeTransitionFrame_SaveRegs_count macros#124627
Merged
MichalStrehovsky merged 2 commits intomainfrom Feb 20, 2026
Conversation
…ame_SaveRegs_count macros Co-authored-by: MichalStrehovsky <13110571+MichalStrehovsky@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove unused PInvokeTransitionFrame_MAX_SIZE macro
Remove unused PInvokeTransitionFrame_MAX_SIZE and PInvokeTransitionFrame_SaveRegs_count macros
Feb 20, 2026
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
jkotas
approved these changes
Feb 20, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Removes dead, unused macros from the NativeAOT runtime binder header (rhbinder.h) to reduce unused platform-conditional code and avoid maintaining unused ABI-related constants.
Changes:
- Remove
PInvokeTransitionFrame_SaveRegs_countplatform-conditional macro definitions. - Remove
PInvokeTransitionFrame_MAX_SIZEmacro that depended onPInvokeTransitionFrame_SaveRegs_count.
This was referenced Feb 20, 2026
This was referenced Feb 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PInvokeTransitionFrame_MAX_SIZEand its dependencyPInvokeTransitionFrame_SaveRegs_count(defined conditionally for AMD64/x86/ARM) insrc/coreclr/nativeaot/Runtime/inc/rhbinder.hare never referenced anywhere else in the repository.Description
Removes 12 lines of dead code from
rhbinder.h:PInvokeTransitionFrame_SaveRegs_count— the three platform-conditional definitions (TARGET_AMD64=9,TARGET_X86=6,TARGET_ARM=9)PInvokeTransitionFrame_MAX_SIZE— the macro consuming the aboveOriginal prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.