[mono][aot] Avoid prefer-ing gsharedvt versions of AsyncMethodBuilderCore etc. method...
authorZoltan Varga <vargaz@gmail.com>
Mon, 10 Jul 2023 23:07:24 +0000 (19:07 -0400)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2023 23:07:24 +0000 (19:07 -0400)
commit9b37c9870b2f9b91a3863dba85b76e383f7574ae
tree7a6309e8f507c29e2d5f2287a0b107b270c947c3
parentb99a4dc4c312e58a8ae7c193f0bd1d457dc17a45
[mono][aot] Avoid prefer-ing gsharedvt versions of AsyncMethodBuilderCore etc. methods in profile-only mode. (#87990)

The gsharedvt versions might not be generated if they are not in the profile, leading to crashes
at runtime.

Fixes https://github.com/dotnet/runtime/issues/87856.
src/mono/mono/mini/aot-compiler.c