Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/coreclr/vm/readytoruninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,14 @@ PCODE ReadyToRunInfo::GetEntryPoint(MethodDesc * pMD, PrepareCodeConfig* pConfig
if (ReadyToRunCodeDisabled())
goto done;

// Return-dropping async thunks are VM-synthesized. They share the same metadata
// token and signature shape as a regular async variant, so the R2R lookup below
// would incorrectly bind the thunk to the non-thunk's compiled code and bypass
// the virtual dispatch the thunk performs. Crossgen2 does not emit R2R code for
// these thunks; fall back to transient IL generation in the prestub.
if (pMD->IsReturnDroppingThunk())
goto done;

ETW::MethodLog::GetR2RGetEntryPointStart(pMD);

uint offset;
Expand Down
4 changes: 0 additions & 4 deletions src/tests/async/covariant-return/covariant-returns.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- https://github.com/dotnet/runtime/issues/126755 -->
<CrossGenTest>false</CrossGenTest>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
<ProjectReference Include="$(TestLibraryProjectPath)" />
Expand Down