th = th.GetMethodTable()->GetMethodTableMatchingParentClass(declaringType.AsMethodTable());
}
- th.GetMethodTable()->EnsureInstanceActive();
+ if (!IsCompilationProcess())
+ {
+ th.GetMethodTable()->EnsureInstanceActive();
+ }
result = (CORINFO_GENERIC_HANDLE)th.AsPtr();
break;
DWORD fieldIndex;
IfFailThrow(ptr.GetData(&fieldIndex));
- th.AsMethodTable()->EnsureInstanceActive();
+ if (!IsCompilationProcess())
+ {
+ th.AsMethodTable()->EnsureInstanceActive();
+ }
result = (CORINFO_GENERIC_HANDLE)th.AsMethodTable()->GetFieldDescByIndex(fieldIndex);
break;