You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting NullabilityInfoContextSupport=false in NativeAOT doesn't remove NullableAttribute/NullableContextAttribute ctors #77753
Inspect the .\obj\Release\net7.0\win-x64\native\HelloWorld.mstat using ildasm and open the Methods() method, which lists all the methods left in the app.
Expected results
The System.Runtime.CompilerServices.NullableAttribute::.ctor(uint8) and System.Runtime.CompilerServices.NullableContextAttribute::.ctor(uint8) methods should be trimmed from the app, so they should not be in the mstat file.
We need to add support for assembly fullname="*". Can be done, just wasn't completely straightforward and I don't expect this to have meaningful savings. Custom attributes are a lot less costly in NativeAOT metadata format than in IL.
Activity
MichalStrehovsky commentedon Nov 1, 2022
This is because of dotnet/runtimelab#1381.
We need to add support for
assembly fullname="*". Can be done, just wasn't completely straightforward and I don't expect this to have meaningful savings. Custom attributes are a lot less costly in NativeAOT metadata format than in IL.