Skip to content

Make MarkAssembly virtual again#125190

Merged
sbomer merged 1 commit intodotnet:mainfrom
Unity-Technologies:linker-reexpose-mark-assembly
Mar 5, 2026
Merged

Make MarkAssembly virtual again#125190
sbomer merged 1 commit intodotnet:mainfrom
Unity-Technologies:linker-reexpose-mark-assembly

Conversation

@mrvoorhe
Copy link
Contributor

@mrvoorhe mrvoorhe commented Mar 4, 2026

#120477 removed the virtual on MarkAssembly. Unity needs to override this method. Adding back the virtual

@mrvoorhe mrvoorhe requested a review from sbomer as a code owner March 4, 2026 21:26
Copilot AI review requested due to automatic review settings March 4, 2026 21:26
@mrvoorhe
Copy link
Contributor Author

mrvoorhe commented Mar 4, 2026

@sbomer please take a look

@dotnet-policy-service dotnet-policy-service bot added linkable-framework Issues associated with delivering a linker friendly framework community-contribution Indicates that the PR has been added by a community member labels Mar 4, 2026
@github-actions github-actions bot added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Mar 4, 2026
@dotnet-policy-service
Copy link
Contributor

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

Copy link
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 restores the virtual modifier on the MarkAssembly method in MarkStep.cs, which was inadvertently removed in PR #120477 (Update TypeMap attribute handling). Unity depends on overriding this method in their linker customizations.

Changes:

  • Adds back the virtual keyword to MarkAssembly(AssemblyDefinition, DependencyInfo, MessageOrigin) in MarkStep.cs

@mrvoorhe
Copy link
Contributor Author

mrvoorhe commented Mar 5, 2026

@sbomer I don't think the CI failures are related. Ready to merge.

@sbomer
Copy link
Member

sbomer commented Mar 5, 2026

/ba-g "Test passed but results were not reported due to APP_CRASH"

@sbomer sbomer merged commit d4a8aa2 into dotnet:main Mar 5, 2026
91 of 96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Tools-ILLink .NET linker development as well as trimming analyzers community-contribution Indicates that the PR has been added by a community member linkable-framework Issues associated with delivering a linker friendly framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants