MonoVTable *vtable;
mono_jit_stats.methods_lookups++;
- vtable = mono_class_vtable (domain, method->klass);
+
+ vtable = mono_class_vtable_full (domain, method->klass, ex == NULL);
+ if (ex && method->klass->exception_type) {
+ *ex = mono_class_get_exception_for_failure (method->klass);
+ return NULL;
+ }
+
g_assert (vtable);
if (!mono_runtime_class_init_full (vtable, error))
return NULL;
mono_align_small_structs = TRUE;
else if (!strcmp (option, "native-debugger-break"))
debug_options.native_debugger_break = TRUE;
+ else if (!strcmp (option, "disable_omit_fp"))
+ debug_options.disable_omit_fp = TRUE;
else
return FALSE;