Skip to content

Commit 3dc26a3

Browse files
authored
[DAC] properly 'dacize' async variant method sigs (#120946)
* Based on existing `StoredSigMethodDesc::GetStoredMethodSig`
1 parent 5ddf25f commit 3dc26a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/coreclr/vm/method.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,13 @@ void MethodDesc::GetSig(PCCOR_SIGNATURE *ppSig, DWORD *pcSig)
466466
if (IsAsyncVariantMethod())
467467
{
468468
Signature sig = GetAddrOfAsyncMethodData()->sig;
469-
*ppSig = sig.GetRawSig();
470469
*pcSig = sig.GetRawSigLen();
470+
#ifdef DACCESS_COMPILE
471+
*ppSig = (PCCOR_SIGNATURE)
472+
DacInstantiateTypeByAddress((TADDR)sig.GetRawSig(), *pcSig, true);
473+
#else // !DACCESS_COMPILE
474+
*ppSig = sig.GetRawSig();
475+
#endif // !DACCESS_COMPILE
471476
return;
472477
}
473478

0 commit comments

Comments
 (0)