We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1781de commit c80de30Copy full SHA for c80de30
src/shared/inc/gcinfo.h
@@ -77,13 +77,15 @@ struct GCInfoToken
77
}
78
#endif
79
80
+ // Keep this in sync with GetR2RGCInfoVersion in cDac (ExecutionManagerCore.ReadyToRunJitManager.cs)
81
static uint32_t ReadyToRunVersionToGcInfoVersion(uint32_t readyToRunMajorVersion, uint32_t readyToRunMinorVersion)
82
{
-#ifdef SOS_INCLUDE
83
- return GCInfoVersion();
84
-#else
85
- return GCINFO_VERSION;
86
-#endif
+ if (readyToRunMajorVersion >= 11)
+ return 4;
+
+ // Since v2 and v3 had the same file format and v1 is no longer supported,
87
+ // we can assume GCInfo v3.
88
+ return 3;
89
90
};
91
0 commit comments