summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vm/dllimport.cpp2
-rw-r--r--src/vm/prestub.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/dllimport.cpp b/src/vm/dllimport.cpp
index eed690454d..685ea03309 100644
--- a/src/vm/dllimport.cpp
+++ b/src/vm/dllimport.cpp
@@ -5569,7 +5569,7 @@ MethodDesc* RestoreNGENedStub(MethodDesc* pStubMD)
#if defined(HAVE_GCCOVER)
if (GCStress<cfg_instr_ngen>::IsEnabled())
- SetupGcCoverage(pStubMD, (BYTE*) pCode);
+ SetupGcCoverage(NativeCodeVersion(pStubMD), (BYTE*)pCode);
#endif // HAVE_GCCOVER
}
diff --git a/src/vm/prestub.cpp b/src/vm/prestub.cpp
index a8d3e4247a..7d756c6728 100644
--- a/src/vm/prestub.cpp
+++ b/src/vm/prestub.cpp
@@ -538,7 +538,7 @@ PCODE MethodDesc::GetPrecompiledNgenCode(PrepareCodeConfig* pConfig)
#ifdef HAVE_GCCOVER
if (GCStress<cfg_instr_ngen>::IsEnabled())
- SetupGcCoverage(this, (BYTE*)pCode);
+ SetupGcCoverage(pConfig->GetCodeVersion(), (BYTE*)pCode);
#endif // HAVE_GCCOVER
#ifdef PROFILING_SUPPORTED