Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3f1676

Browse files
committed
[mono][interp] Ensure class is initialized before getting aot method
1 parent e3cb92f commit b3f1676

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mono/mono/mini/interp/transform.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,7 @@ mono_interp_jit_call_supported (MonoMethod *method, MonoMethodSignature *sig)
12251225

12261226
if (mono_aot_only && m_class_get_image (method->klass)->aot_module && !(method->iflags & METHOD_IMPL_ATTRIBUTE_SYNCHRONIZED)) {
12271227
ERROR_DECL (error);
1228+
mono_class_init_internal (method->klass);
12281229
gpointer addr = mono_aot_get_method (method, error);
12291230
if (addr && is_ok (error)) {
12301231
MonoAotMethodFlags flags = mono_aot_get_method_flags (addr);

0 commit comments

Comments
 (0)