Repository navigation
Fix ReadyToRun generic parameter symbol collisions - #136191
Merged
jtschuster merged 10 commits intoNov 17, 2026
Merged
Conversation
Name runtime-determined types by generic parameter kind and ordinal instead of metadata display names, avoiding colliding ReadyToRun generic lookup import symbols. Cover Unicode anonymous properties and type/method generic parameters with normal and composite Crossgen2 compilation tests. Co-authored-by: Copilot <[email protected]> Copilot-Session: 21c1c9a0-a662-4b3d-947e-e8217da4bd10
Keep the regression test non-composite since the generic symbol collision is reproduced by the single-assembly build. 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 |
jkotas
reviewed
Oct 21, 2026
Member
Would it be better to do this in the name mangler? |
Member
RuntimeDeterminedType could probably become a IPrefixMangledType to enable that. We might need to change the |
Represent runtime-determined types with IPrefixMangledType so the type's kind and generic parameter index become stable UTF-8 name prefixes. Co-authored-by: Copilot <[email protected]> Copilot-Session: 21c1c9a0-a662-4b3d-947e-e8217da4bd10
jkotas
reviewed
Oct 30, 2026
Co-authored-by: Copilot <[email protected]> Copilot-Session: 21c1c9a0-a662-4b3d-947e-e8217da4bd10
Co-authored-by: Copilot <[email protected]> Copilot-Session: 21c1c9a0-a662-4b3d-947e-e8217da4bd10
jtschuster
marked this pull request as ready for review
November 2, 2026 18:14
…ition Mangle RuntimeDeterminedType in NativeAotNameMangler as <Owner_T#>CanonType / <Owner_M#>CanonType so generic parameters from different owners (e.g. List<>.T and Dictionary<,>.TKey) no longer collide. RuntimeDeterminedType no longer implements IPrefixMangledType. Co-authored-by: Copilot <[email protected]>
…ned-generic-names
…ied mangling Co-authored-by: Copilot <[email protected]>
MichalStrehovsky
approved these changes
Nov 17, 2026
Member
Author
|
/backport to release/11.0 |
Contributor
|
Started backporting to |
2 of 4 tasks
This was referenced Nov 24, 2026
[Perf] Linux/x64: 7 Improvements on 11/17/2026 4:07:03 PM +00:00
dotnet/perf-autofiling-issues#83137
Open
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.
Fixes #135779
ReadyToRun runtime-determined type names used generic parameter metadata names. Unicode generic parameter names (e.g.
List<T😊>andList<T_>) could therefore sanitize to the same symbol name, causing collidingDelayLoadHelperImportsymbols.Name synthetic runtime-determined types using the generic parameter's signature identity instead:
T0,T1, etc. for type parametersM0,M1, etc. for method parametersThis preserves the diagnostic name behavior while keeping kind and ordinal 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.