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

Drop [DynamicallyAccessedMembers] from Marshaler<T>.AbiType #1461

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

Sergio0694
Copy link
Member

Related to #1460 (comment). This PR drops the [DynamicallyAccessedMembers] use from Marshaler<T>.AbiType, which was not needed and was causing a lot of unnecessary stuff to be preserved unnecessarily (for explicit T types that were not helper types). The public members for the helper types are already preserved separately, and this attribute was only used to suppress warnings within the static constructor. I've changed the logic there to just flow the annitations through a local variable instead.

@Sergio0694
Copy link
Member Author

Saves 51 KB on .NET 9! 🎉

image

@Sergio0694 Sergio0694 merged commit 53dcb5d into staging/AOT Jan 22, 2024
9 checks passed
@Sergio0694 Sergio0694 deleted the user/sergiopedri/drop-marshaler-abitype-dam branch January 22, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants