-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[android] Make Android app on coreclr use host-runtime contract and provide external assembly probe #112938
base: main
Are you sure you want to change the base?
Conversation
Tagging subscribers to this area: @akoeplinger, @matouskozak |
bb494f9
to
00cddbb
Compare
AndroidSampleApp
use host-runtime contract and provide external assembly probe00cddbb
to
1ea37be
Compare
Co-authored-by: kasperk81 <83082615+kasperk81@users.noreply.github.com>
appctx_keys[0] = "RUNTIME_IDENTIFIER"; | ||
appctx_keys[1] = "APP_CONTEXT_BASE_DIRECTORY"; | ||
appctx_keys[2] = "TRUSTED_PLATFORM_ASSEMBLIES"; | ||
appctx_keys[2] = "HOST_RUNTIME_CONTRACT"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the Android app on coreclr always go through the external assembly probe, which is more like the real scenario. Is there usefulness in keeping the TPA property / runtime loading from disk and letting that be enabled via some define that can be specified when building the app?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. We only loaded from disk before because it was the easiest path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Steve, although it would be interesting to see the difference in performance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
I left a few minor notes
appctx_keys[0] = "RUNTIME_IDENTIFIER"; | ||
appctx_keys[1] = "APP_CONTEXT_BASE_DIRECTORY"; | ||
appctx_keys[2] = "TRUSTED_PLATFORM_ASSEMBLIES"; | ||
appctx_keys[2] = "HOST_RUNTIME_CONTRACT"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Steve, although it would be interesting to see the difference in performance.
/azp run runtime-androidemulator |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-androidemulator |
Azure Pipelines successfully started running 1 pipeline(s). |
host_runtime_contract::external_assembly_probe