Skip to content

Commit

Permalink
Try to init less for G<T>[][]
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed May 19, 2023
1 parent b883e2d commit 5faed55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mono/mono/metadata/class-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,9 @@ mono_class_create_bounded_array (MonoClass *eclass, guint32 rank, gboolean bound

mono_class_setup_supertypes (klass);

if (mono_class_is_ginst (eclass))
mono_class_init_internal (eclass);
//if (mono_class_is_ginst (eclass))
// mono_class_init_internal (eclass);
// NOTE: this is also probably too aggressive if eclass is not a valuetype
if (!eclass->size_inited)
mono_class_setup_fields (eclass);
mono_class_set_type_load_failure_causedby_class (klass, eclass, "Could not load array element type");
Expand Down

0 comments on commit 5faed55

Please sign in to comment.