Skip to content

Commit a16f72f

Browse files
authored
Merge pull request #179 from Unity-Technologies/bugfix/debug-coreclr-fail-assembly-load-check
Ensure that methods we get through MethodDesc are activated after load
2 parents c8e09f3 + 43aa683 commit a16f72f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coreclr/vm/mono/mono_coreclr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ extern "C" EXPORT_API MonoMethod* EXPORT_CC mono_class_get_methods(MonoClass* kl
679679
CONTRACTL
680680
{
681681
THROWS;
682-
GC_NOTRIGGER;
682+
GC_TRIGGERS;
683683
PRECONDITION(klass != NULL);
684684
}
685685
CONTRACTL_END;
@@ -708,6 +708,7 @@ extern "C" EXPORT_API MonoMethod* EXPORT_CC mono_class_get_methods(MonoClass* kl
708708
}
709709

710710
auto method = iterator->GetMethodDesc();
711+
method->EnsureActive();
711712
iterator->Next();
712713
return (MonoMethod*)method;
713714
}

0 commit comments

Comments
 (0)