diff --git a/src/vm/method.cpp b/src/vm/method.cpp index 743b7b6018c3..e4a75d6a4c94 100644 --- a/src/vm/method.cpp +++ b/src/vm/method.cpp @@ -5475,6 +5475,11 @@ MethodDesc::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) } } +#ifdef FEATURE_CODE_VERSIONING + // Make sure the active IL and native code version are in triage dumps. + GetCodeVersionManager()->GetActiveILCodeVersion(dac_cast(this)).GetActiveNativeCodeVersion(dac_cast(this)); +#endif + // Also, call DacValidateMD to dump the memory it needs. !clrstack calls // DacValidateMD before it retrieves the method name. We don't expect // DacValidateMD to fail, but if it does, ignore the failure and try to assemble the