This fix is to update usages of SetupGcCoverage() under
FEATURE_PREJIT aligned to the signature change in dotnet/coreclr#25261.
Commit migrated from https://github.com/dotnet/coreclr/commit/
6116c57190dc8332b4ff30e90e4aab936a7078cb
#if defined(HAVE_GCCOVER)
if (GCStress<cfg_instr_ngen>::IsEnabled())
- SetupGcCoverage(pStubMD, (BYTE*) pCode);
+ SetupGcCoverage(NativeCodeVersion(pStubMD), (BYTE*)pCode);
#endif // HAVE_GCCOVER
}
#ifdef HAVE_GCCOVER
if (GCStress<cfg_instr_ngen>::IsEnabled())
- SetupGcCoverage(this, (BYTE*)pCode);
+ SetupGcCoverage(pConfig->GetCodeVersion(), (BYTE*)pCode);
#endif // HAVE_GCCOVER
#ifdef PROFILING_SUPPORTED