Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

This is something I noticed among the failures in #73547.

See the regression test - since it doesn't trigger AOT or trimming warnings, it needs to "just work". What we need to do to fix this is to force generation of code on things that have a type handle (i.e. the type is reflection-visible) and reflection visible method definitions. We would previously fail at the Invoke step since no method body was generated for this instantiation.

This is a size regression - it's 4 kB on a hello world - but we need it for correctness.

Cc @dotnet/ilc-contrib

@MichalStrehovsky MichalStrehovsky merged commit 753d12f into dotnet:main Aug 11, 2022
@MichalStrehovsky MichalStrehovsky deleted the reflmeth branch August 11, 2022 08:44
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants