Repository navigation
[release/11.0] Fix ReadyToRun generic parameter symbol collisions - #137752
Open
github-actions[bot] wants to merge 2 commits into
Open
github-actions[bot] wants to merge 2 commits into
github-actions[bot] wants to merge 2 commits into
Conversation
Fixes #135779 ReadyToRun runtime-determined type names used generic parameter metadata names. Unicode generic parameter names (e.g. `List<T \u3042>` and `List<T_>`) could therefore sanitize to the same symbol name, causing colliding `DelayLoadHelperImport` symbols. Special-case RuntimeDetermineType in the NameMangler and name them using the generic parameter's signature identity instead: - `T0`, `T1`, etc. for type parameters - `M0`, `M1`, etc. for method parameters This keeps an understandable diagnostic name behavior while keeping identity distinct. Added ReadyToRun compilation tests covering Unicode and punctuation cases in normal and composite builds. > [!NOTE] > This PR description was generated with GitHub Copilot. --------- Co-authored-by: Copilot <[email protected]> Copilot-Session: 21c1c9a0-a662-4b3d-947e-e8217da4bd10
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/crossgen-contrib |
This was referenced Nov 17, 2026
MichalStrehovsky
approved these changes
Nov 18, 2026
This branch has not been deployed
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.
Backport of #136191 to release/11.0
/cc @jtschuster
Customer Impact
Regression
Testing
Tests were added to ensure compilation no longer fails, and repro apps were manually validated.
Risk
Low. In ReadyToRun this representation is internal, and there are sufficient tests to be confident.