File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Java.Interop/Java.Interop Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ unsafe public class JavaObject : IJavaPeerable
2424 JniObjectReferenceType handle_type ;
2525 #pragma warning disable 0169
2626 // Used by JavaInteropGCBridge
27- IntPtr weak_handle ;
2827 int refs_added ;
2928 #pragma warning restore 0169
3029#endif // FEATURE_JNIOBJECTREFERENCE_INTPTRS
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ typedef struct MonoJavaGCBridgeInfo {
3333 MonoClassField *handle;
3434 MonoClassField *handle_type;
3535 MonoClassField *refs_added;
36- MonoClassField *weak_handle;
3736} MonoJavaGCBridgeInfo;
3837
3938#define NUM_GC_BRIDGE_TYPES (4 )
@@ -354,10 +353,9 @@ java_interop_gc_bridge_register_bridgeable_type (
354353 info->handle = mono_class_get_field_from_name (info->klass , const_cast <char *> (" handle" ));
355354 info->handle_type = mono_class_get_field_from_name (info->klass , const_cast <char *> (" handle_type" ));
356355 info->refs_added = mono_class_get_field_from_name (info->klass , const_cast <char *> (" refs_added" ));
357- info->weak_handle = mono_class_get_field_from_name (info->klass , const_cast <char *> (" weak_handle" ));
358356
359357 if (info->klass == NULL || info->handle == NULL || info->handle_type == NULL ||
360- info->refs_added == NULL || info-> weak_handle == NULL )
358+ info->refs_added == NULL )
361359 return -1 ;
362360 bridge->num_bridge_types ++;
363361 return 0 ;
You can’t perform that action at this time.
0 commit comments