[wasm] Keep all icall wrappers in profile only mode, the generated code depends on...
authorZoltan Varga <vargaz@gmail.com>
Tue, 27 Sep 2022 23:26:43 +0000 (19:26 -0400)
committerGitHub <noreply@github.com>
Tue, 27 Sep 2022 23:26:43 +0000 (19:26 -0400)
src/mono/mono/mini/aot-compiler.c

index c79ba81..005298f 100644 (file)
@@ -9089,6 +9089,14 @@ compile_method (MonoAotCompile *acfg, MonoMethod *method)
                                case WRAPPER_SUBTYPE_PTR_TO_STRUCTURE:
                                case WRAPPER_SUBTYPE_STRUCTURE_TO_PTR:
                                        break;
+                               case WRAPPER_SUBTYPE_ICALL_WRAPPER: {
+                                       MonoJumpInfo *tmp_ji = mono_mempool_alloc0 (acfg->mempool, sizeof (MonoJumpInfo));
+                                       tmp_ji->type = MONO_PATCH_INFO_METHOD;
+                                       tmp_ji->data.method = method;
+                                       get_got_offset (acfg, TRUE, tmp_ji);
+                                       keep = TRUE;
+                                       break;
+                               }
                                default:
                                        keep = TRUE;
                                        break;