Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve all InternalsVisibleTo attributes in ILLink Trimmer #98910

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

Xtansia
Copy link
Contributor

@Xtansia Xtansia commented Feb 26, 2024

Removes previous special handling to only keep IVT attributes for assemblies that were resolvable and marked at link time. This behaviour could cause a noticeable difference in behaviour at runtime without emitting any trim analysis warnings while providing no mechanism to retain the attributes. The removal of these attributes provides only a neglible size reduction.

Fixes #92582

@Xtansia Xtansia requested a review from marek-safar as a code owner February 26, 2024 02:33
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Feb 26, 2024
@ghost
Copy link

ghost commented Feb 26, 2024

Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas
See info in area-owners.md if you want to be subscribed.

Issue Details

Removes previous special handling to only keep IVT attributes for assemblies that were resolvable and marked at link time. This behaviour could cause a noticeable difference in behaviour at runtime without emitting any trim analysis warnings while providing no mechanism to retain the attributes. The removal of these attributes provides only a neglible size reduction.

Fixes #92582

Author: Xtansia
Assignees: -
Labels:

area-Tools-ILLink

Milestone: -

@Xtansia Xtansia force-pushed the fix/preserve-ivt-attributes branch from fa9da15 to dbd86c0 Compare February 26, 2024 02:34
@Xtansia
Copy link
Contributor Author

Xtansia commented Feb 26, 2024

@dotnet-policy-service agree

@Xtansia Xtansia force-pushed the fix/preserve-ivt-attributes branch from 048a932 to 25906e9 Compare April 10, 2024 00:56
Removes previous special handling to only keep IVT attributes for
assemblies that were resolvable and marked at link time. This behaviour
could cause a noticeable difference in behaviour at runtime without emitting
any trim analysis warnings while providing no mechanism to retain the
attributes. The removal of these attributes provides only a neglible
size reduction.

Fixes dotnet#92582
@Xtansia Xtansia force-pushed the fix/preserve-ivt-attributes branch from 25906e9 to 9144ba6 Compare April 10, 2024 01:42
Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution!

@MichalStrehovsky
Copy link
Member

@sbomer is this waiting for someone else's review?

@sbomer sbomer merged commit a4f1e74 into dotnet:main Apr 15, 2024
78 of 80 checks passed
@sbomer
Copy link
Member

sbomer commented Apr 15, 2024

Nope, merged.

@Xtansia Xtansia deleted the fix/preserve-ivt-attributes branch April 15, 2024 23:24
@Xtansia
Copy link
Contributor Author

Xtansia commented Apr 18, 2024

Thanks @sbomer. Is there any follow up actions required from my end? What sort of timeline could I expect to see this included in a release?

@sbomer
Copy link
Member

sbomer commented Apr 18, 2024

No action required. You should see it included in the next .NET 9 preview release (preview 4).

matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
…98910)

Removes previous special handling to only keep IVT attributes for
assemblies that were resolvable and marked at link time. This behaviour
could cause a noticeable difference in behaviour at runtime without emitting
any trim analysis warnings while providing no mechanism to retain the
attributes. The removal of these attributes provides only a neglible
size reduction.

Fixes dotnet#92582
@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

Trimmer removes InternalsVisibleTo attributes for assemblies which are trimmed
4 participants