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.

The wrappers are not found at runtime in some cases.

Ref: #79814.
  • Loading branch information
vargaz committed Jan 6, 2023
1 parent e0a6771 commit fb685ec
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 fb685ec

Please sign in to comment.