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. (#80279)

The wrappers are not found at runtime in some cases.

Ref: #79814.
  • Loading branch information
vargaz authored Jan 6, 2023
1 parent 2a27452 commit b0601cf
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 @@ -4453,6 +4453,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 b0601cf

Please sign in to comment.