-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Revert "Use DynamicDependency"
#2948
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
Conversation
This reverts commit 3cebcb9.
|
The reason for not using reflection in AOT is because of trimming afaict. Dynamic dependency prevents that trimming and makes the code gen simpler for all toolchains. All the tests passed. What is the reason to revert? |
The ability to benchmark Native AOT in the mode where it removes reflection entirely. |
|
I see. Do we need that for wasm AOT as well? |
Most likely not, but I am not sure if we should have two different AOT code paths (increased complexity and likelihood of errors) |
|
It looks like reflection-free mode was removed in dotnet/runtime#109857 (.Net 10 I think). I guess we still need to care for .Net 6-9. |
|
I tried adding a test with
Given that it looks like we never actually supported that mode (we certainly never tested it), and runtime removed it, how do you feel about un-reverting these changes @adamsitnik? |
|
Alternatively I put up #2951. Which may be better anyway in case someone wants to benchmark ReadyToRun. |
Reverts #2941, we don't use reflection on purpose