Build error fix on FEATURE_PREJIT=true (dotnet/coreclr#25660)
authorSwift Kim <swift.kim@samsung.com>
Wed, 17 Jul 2019 02:54:03 +0000 (11:54 +0900)
committerJan Kotas <jkotas@microsoft.com>
Wed, 17 Jul 2019 02:54:03 +0000 (19:54 -0700)
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

src/coreclr/src/vm/dllimport.cpp
src/coreclr/src/vm/prestub.cpp

index eed6904..685ea03 100644 (file)
@@ -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
 
     }
index b76a018..74cd252 100644 (file)
@@ -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