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

Ensure methods on different instantiations are reflectable #73749

Merged
merged 2 commits into from
Aug 11, 2022

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