File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10564,7 +10564,11 @@ mono_aot_method_hash (MonoMethod *method)
1056410564 hashes [0 ] = mono_metadata_str_hash (m_class_get_name (klass ));
1056510565 hashes [1 ] = mono_metadata_str_hash (m_class_get_name_space (klass ));
1056610566 }
10567- hashes [2 ] = mono_metadata_str_hash (method -> name );
10567+ if (method -> wrapper_type == MONO_WRAPPER_MANAGED_TO_NATIVE && mono_marshal_get_wrapper_info (method )-> subtype == WRAPPER_SUBTYPE_ICALL_WRAPPER )
10568+ /* The name might not be set correctly if DISABLE_JIT is set */
10569+ hashes [2 ] = mono_marshal_get_wrapper_info (method )-> d .icall .jit_icall_id ;
10570+ else
10571+ hashes [2 ] = mono_metadata_str_hash (method -> name );
1056810572 hashes [3 ] = method -> wrapper_type ;
1056910573 hashes [4 ] = mono_aot_type_hash (sig -> ret );
1057010574 hindex = 5 ;
You can’t perform that action at this time.
0 commit comments