From: David Mason Date: Wed, 14 Jun 2023 09:55:48 +0000 (-0700) Subject: Fix GetILFunctionBody for dynamic methods (#87530) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~1651 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e082cc63cf2f19fa41f520d65406b20f3cd3202f;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix GetILFunctionBody for dynamic methods (#87530) --- diff --git a/src/coreclr/vm/proftoeeinterfaceimpl.cpp b/src/coreclr/vm/proftoeeinterfaceimpl.cpp index 5c5dc9d..92df0d4 100644 --- a/src/coreclr/vm/proftoeeinterfaceimpl.cpp +++ b/src/coreclr/vm/proftoeeinterfaceimpl.cpp @@ -4337,7 +4337,7 @@ HRESULT ProfToEEInterfaceImpl::GetILFunctionBody(ModuleID moduleId, PEAssembly *pPEAssembly = pModule->GetPEAssembly(); - if (!pPEAssembly->HasLoadedPEImage()) + if (!pPEAssembly->IsLoaded()) return (CORPROF_E_DATAINCOMPLETE); LPCBYTE pbMethod = NULL; @@ -4447,7 +4447,7 @@ HRESULT ProfToEEInterfaceImpl::GetILFunctionBodyAllocator(ModuleID modul Module * pModule = (Module *) moduleId; if (pModule->IsBeingUnloaded() || - !pModule->GetPEAssembly()->HasLoadedPEImage()) + !pModule->GetPEAssembly()->IsLoaded()) { return (CORPROF_E_DATAINCOMPLETE); }