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

[illink] Do not preserve ConstructorBuilder #5364

Merged

Conversation

radekdoulik
Copy link
Member

@radekdoulik radekdoulik commented Dec 3, 2020

Part of #5167

The type is not accessed by reflection. It can also be made static,
but that is already part of #5360

Removed API from BuildReleaseArm64False test:

apkdiff before.apk after.apk
...
Type Android.Runtime.ConstructorBuilder
  -             Method public SIGERR .ctor ()
...

Part of dotnet#5167

The type is not accessed by reflection. It can also be made static,
but that is already part of dotnet#5360

Removed API from BuildReleaseArm64False test:

    Type Android.Runtime.ConstructorBuilder
      -             Method public SIGERR .ctor ()
@radekdoulik radekdoulik requested a review from jonpryor as a code owner December 3, 2020 14:20
@jonpryor
Copy link
Member

jonpryor commented Dec 3, 2020

What's the illinkanalyzer command that gave you the output provided in the PR message?

@jonpryor
Copy link
Member

jonpryor commented Dec 3, 2020

Do we need to preserve Android.Runtime.ConstructorBuilder in "legacy" Xamarin.Android as well? I'm not sure why we needed to preserve it in the first place, and xamarin/monodroid@11529d47e does not provide enlightenment.

@radekdoulik
Copy link
Member Author

Do we need to preserve Android.Runtime.ConstructorBuilder in "legacy" Xamarin.Android as well?

I guess we can. I could try to use relevant parts in the "current/legacy" preserve files as well, once I am done with .NET5/6

@jonpryor
Copy link
Member

jonpryor commented Dec 4, 2020

Squash-and-merge summary:

[One .NET] Don't always preserve Android.Runtime.ConstructorBuilder (#5364)

Squash-and-merge body:

Context: https://github.com/xamarin/xamarin-android/issues/5167

The `Android.Runtime.ConstructorBuilder` type is not accessed
by reflection, and does not need to be fully preserved by the linker.

@jonpryor jonpryor merged commit 9ad0947 into dotnet:master Dec 9, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants