summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSwift Kim <swift.kim@samsung.com>2019-07-12 06:50:08 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 12:29:41 (GMT)
commitadcbf6d8b676d209709c4523e293f11005c6d1aa (patch)
treef44a66ad1916df3682617187b44fdbdd6bc6ece9 /src
parentb241dc76c28557e15aef1a78f9bae5bd67134c7e (diff)
downloadcoreclr-adcbf6d8b676d209709c4523e293f11005c6d1aa.zip
coreclr-adcbf6d8b676d209709c4523e293f11005c6d1aa.tar.gz
coreclr-adcbf6d8b676d209709c4523e293f11005c6d1aa.tar.bz2
Build error fix on FEATURE_PREJIT=true
This fix is to update usages of SetupGcCoverage() under FEATURE_PREJIT aligned to the signature change in #25261.
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 eed6904..685ea03 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 a8d3e42..7d756c6 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