Skip to content

Conversation

@vitek-karas
Copy link
Member

Descriptors have the behavior that specifying just the assembly element without any children will root the entire assembly (and everything in it). The same applies to types (specifying just the type element will mark the entire type).
With the new feature switches, we have to be careful to not generate an empty assembly element, otherwise we will accidentally root the entire corelib.

Fixes the problem seen in dotnet/runtime#53144.

Copy link
Contributor

@LakshanF LakshanF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@vitek-karas vitek-karas merged commit 4d42726 into dotnet:main May 24, 2021
@vitek-karas vitek-karas deleted the FixEmptyFSElement branch May 24, 2021 16:50
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
… whole assembly (dotnet/linker#2051)

Descriptors have the behavior that specifying just the assembly element without any children will root the entire assembly (and everything in it). The same applies to types (specifying just the type element will mark the entire type).
With the new feature switches, we have to be careful to not generate an empty assembly element, otherwise we will accidentally root the entire corelib.

Fixes the problem seen in #53144.

Commit migrated from dotnet/linker@4d42726
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.

2 participants