Remove the data field from MonoVTable to reduce memory usage.
[mono.git] / mono / mini / mini-generic-sharing.c
index 8706fa3c31adaf4ce1c469cc0927a6ff94bebc72..63f70e5d7328138a529da7512031a84c5b1e6cc5 100644 (file)
@@ -838,7 +838,7 @@ class_type_info (MonoDomain *domain, MonoClass *class, int info_type)
                MonoVTable *vtable = mono_class_vtable (domain, class);
                if (!vtable)
                        mono_raise_exception (mono_class_get_exception_for_failure (class));
-               return vtable->data;
+               return mono_vtable_get_static_field_data (vtable);
        }
        case MONO_RGCTX_INFO_KLASS:
                return class;