Skip to content

Commit

Permalink
[mono][aot] Disable dedup for wrapper with a return type which has a …
Browse files Browse the repository at this point in the history
…cmod. (#81003)

The wrappers are not found at runtime in some cases.

Ref: #79814.

Co-authored-by: Zoltan Varga <vargaz@gmail.com>
  • Loading branch information
github-actions[bot] and vargaz authored Feb 8, 2023
1 parent c50038c commit d4ac64c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mono/mono/mini/aot-runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -4445,6 +4445,11 @@ mono_aot_can_dedup (MonoMethod *method)
/* Handled using linkonce */
return FALSE;
#endif
MonoMethodSignature *sig = mono_method_signature_internal (method);
if (sig->ret->has_cmods) {
// FIXME:
return FALSE;
}
return TRUE;
}
default:
Expand Down

0 comments on commit d4ac64c

Please sign in to comment.