From b60d26aee537796e7de9249db5d03213b6e0075a Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Wed, 17 Jul 2019 11:54:03 +0900 Subject: [PATCH] Build error fix on FEATURE_PREJIT=true (dotnet/coreclr#25660) 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 | 2 +- src/coreclr/src/vm/prestub.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/vm/dllimport.cpp b/src/coreclr/src/vm/dllimport.cpp index eed6904..685ea03 100644 --- a/src/coreclr/src/vm/dllimport.cpp +++ b/src/coreclr/src/vm/dllimport.cpp @@ -5569,7 +5569,7 @@ MethodDesc* RestoreNGENedStub(MethodDesc* pStubMD) #if defined(HAVE_GCCOVER) if (GCStress::IsEnabled()) - SetupGcCoverage(pStubMD, (BYTE*) pCode); + SetupGcCoverage(NativeCodeVersion(pStubMD), (BYTE*)pCode); #endif // HAVE_GCCOVER } diff --git a/src/coreclr/src/vm/prestub.cpp b/src/coreclr/src/vm/prestub.cpp index b76a018..74cd252 100644 --- a/src/coreclr/src/vm/prestub.cpp +++ b/src/coreclr/src/vm/prestub.cpp @@ -538,7 +538,7 @@ PCODE MethodDesc::GetPrecompiledNgenCode(PrepareCodeConfig* pConfig) #ifdef HAVE_GCCOVER if (GCStress::IsEnabled()) - SetupGcCoverage(this, (BYTE*)pCode); + SetupGcCoverage(pConfig->GetCodeVersion(), (BYTE*)pCode); #endif // HAVE_GCCOVER #ifdef PROFILING_SUPPORTED -- 2.7.4