Skip to content

Commit

Permalink
[mono][jit] Avoid an assert when using unmanaged generic calli in gsh…
Browse files Browse the repository at this point in the history
…ared methods. (#99355)
  • Loading branch information
vargaz authored Mar 6, 2024
1 parent add19f1 commit 1aa10a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mono/mono/mini/method-to-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -7548,6 +7548,9 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
if (cfg->compile_aot)
cfg->pinvoke_calli_signatures = g_slist_prepend_mempool (cfg->mempool, cfg->pinvoke_calli_signatures, fsig);

if (fsig->has_type_parameters)
GENERIC_SHARING_FAILURE (CEE_CALLI);

/* Call the wrapper that will do the GC transition instead */
MonoMethod *wrapper = mono_marshal_get_native_func_wrapper_indirect (method->klass, fsig, cfg->compile_aot);

Expand Down

0 comments on commit 1aa10a7

Please sign in to comment.