Skip to content

Commit d4ac64c

Browse files
[mono][aot] Disable dedup for wrapper with a return type which has a cmod. (#81003)
The wrappers are not found at runtime in some cases. Ref: #79814. Co-authored-by: Zoltan Varga <vargaz@gmail.com>
1 parent c50038c commit d4ac64c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mono/mono/mini/aot-runtime.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4445,6 +4445,11 @@ mono_aot_can_dedup (MonoMethod *method)
44454445
/* Handled using linkonce */
44464446
return FALSE;
44474447
#endif
4448+
MonoMethodSignature *sig = mono_method_signature_internal (method);
4449+
if (sig->ret->has_cmods) {
4450+
// FIXME:
4451+
return FALSE;
4452+
}
44484453
return TRUE;
44494454
}
44504455
default:

0 commit comments

Comments
 (0)