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
Previously, JniRuntime.JniObjectReferenceManager was used to track
JNI *reference* lifetimes, but it wasn't used to track *JavaObject*
lifetimes, e.g. when a JavaObject instance was created, disposed, or
finalized.
Xamarin.Android *does* log these events.
Update JniRuntime.JniValueMarshaler to log these JavaObject lifetime
events, in the spirit of Xamarin.Android but with more information.
Update JniRuntime.JniObjectReferenceManager to add properties for
whether logging is performed:
partial class JniObjectReferenceManager {
public virtual bool LogLocalReferenceMessages {get;}
public virtual bool LogGlobalReferenceMessages {get;}
}
This is used by JniRuntime.JniValueMarshaler to avoid possibly
expensive Reflection calls when the information won't be logged.
0 commit comments