Skip to content

Separate frozen object owning type from allocation site#129113

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix129074
Jun 8, 2026
Merged

Separate frozen object owning type from allocation site#129113
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix129074

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

Fixes #129074.

Type names ending with numbers could clash with the callsite ID.

Fixes dotnet#129074.

Type names ending with numbers could clash with the callsite ID.
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

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 adjusts NativeAOT/ILC frozen object symbol name mangling to prevent collisions between an owning type name that ends in digits and the appended allocation-site ID.

Changes:

  • Insert a delimiter ('_') between the owning type’s mangled name and the allocation-site ID in SerializedFrozenObjectNode.AppendMangledName.

@MichalStrehovsky MichalStrehovsky enabled auto-merge (squash) June 8, 2026 05:20
@MichalStrehovsky MichalStrehovsky merged commit 91f6523 into dotnet:main Jun 8, 2026
113 of 115 checks passed
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.

ILC crashes on a test project with 1mln delegates and 1000 cctors

3 participants