Skip to content

Commit 4bdcdb8

Browse files
github-actions[bot]thaystgtommcdon
authored
Fix generation of minidump (#115739)
Co-authored-by: Thays Grazia <[email protected]> Co-authored-by: Tom McDonald <[email protected]>
1 parent 607a335 commit 4bdcdb8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/coreclr/vm/method.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3798,10 +3798,14 @@ MethodDesc::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
37983798
ILCodeVersion ilVersion = pCodeVersionManager->GetActiveILCodeVersion(dac_cast<PTR_MethodDesc>(this));
37993799
if (!ilVersion.IsNull())
38003800
{
3801-
ilVersion.GetActiveNativeCodeVersion(dac_cast<PTR_MethodDesc>(this));
3802-
ilVersion.GetVersionId();
3803-
ilVersion.GetRejitState();
3804-
ilVersion.GetIL();
3801+
EX_TRY
3802+
{
3803+
ilVersion.GetActiveNativeCodeVersion(dac_cast<PTR_MethodDesc>(this));
3804+
ilVersion.GetVersionId();
3805+
ilVersion.GetRejitState();
3806+
ilVersion.GetIL();
3807+
}
3808+
EX_CATCH_RETHROW_ONLY_COR_E_OPERATIONCANCELLED
38053809
}
38063810
#endif
38073811

0 commit comments

Comments
 (0)