Backport fixes for sharing wrappers when type attributes are involved (#21537)mono-6.12.0.185
commita96bde9730e4c2244536ce5f4250e5e4f4e6780a
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 18 Aug 2022 11:08:46 +0000 (18 14:08 +0300)
committerGitHub <noreply@github.com>
Thu, 18 Aug 2022 11:08:46 +0000 (18 13:08 +0200)
tree6922e0ffba847daddbccf3d794823ead6cc1b7f7
parente7c645a340afdcc1ce24abd9998c668543d9a475
Backport fixes for sharing wrappers when type attributes are involved (#21537)

* [wasm] Fix the handling of i8/u8 in get_wrapper_shared_type_full (). (#19859)

Previously, these were returned verbatim, which caused sharing issues when the type had
attributes.

Fixes https://github.com/mono/mono/issues/19841.

* [aot] Fix the handling of r4/r8 parameter types with attributes during generic sharing. (#20217)

The attributes need to be ignored as with the other types, otherwise gsharedvt wrappers for signatures with
parameters like double f = default will not be found.

Fixes https://github.com/mono/mono/issues/20195.

Co-authored-by: Zoltan Varga <vargaz@gmail.com>
mono/mini/mini-generic-sharing.c