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
[CoreCLR] Cache JNI to Managed type mappings (#10170)
I noticed there were *thousands* of log messages such as:
I monodroid: Loaded type: Java.Lang.Object
printed in logcat while running unit tests. It turns out we aren't
caching the resolved type mappings when the `GetJavaToManagedType`
method is called from `AndroidRuntime.GetTypesForSimpleReference`.
This hurts performance because the call to
`clr_typemap_java_to_managed` is fairly expensive.
This change makes sure we're using the
`TypeManagerMapDictionaries.JniToManaged` cache in this codepath.
0 commit comments