From 11832401739148f1f1e9419cb51180ba5263a41b Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Thu, 4 Oct 2018 10:18:23 +0200 Subject: Remove AppDomain unload (#20250) * Remove AppDomain unload This change removes all code in AppDomain that's related to AppDomain unloading which is obsolete in CoreCLR. It also removes all calls to the removed methods. In few places, I have made the change simpler by taking into account the fact that there is always just one AppDomain. --- src/vm/domainfile.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src/vm/domainfile.cpp') diff --git a/src/vm/domainfile.cpp b/src/vm/domainfile.cpp index ded1e5715b..2a1b5e5fea 100644 --- a/src/vm/domainfile.cpp +++ b/src/vm/domainfile.cpp @@ -37,24 +37,6 @@ #include "perfmap.h" #endif // FEATURE_PERFMAP -BOOL DomainAssembly::IsUnloading() -{ - WRAPPER_NO_CONTRACT; - SUPPORTS_DAC; - - BOOL fIsUnloading = FALSE; - - fIsUnloading = this->GetAppDomain()->IsUnloading(); - - if (!fIsUnloading) - { - fIsUnloading = m_fDebuggerUnloadStarted; - } - - return fIsUnloading; -} - - #ifndef DACCESS_COMPILE DomainFile::DomainFile(AppDomain *pDomain, PEFile *pFile) : m_pDomain(pDomain), @@ -1379,11 +1361,7 @@ BOOL DomainFile::PropagateNewActivation(Module *pModuleFrom, Module *pModuleTo) while (ai.Next()) { STRESS_LOG3(LF_LOADER, LL_INFO100,"Attempting to propagate domain-neutral conditional module dependency %p -> %p to AppDomain %i\n",pModuleFrom,pModuleTo,ai.GetDomain()->GetId().m_dwId); - // This is to minimize the chances of trying to run code in an appdomain that's shutting down. - if (ai.GetDomain()->CanThreadEnter(pThread)) - { - completed &= PropagateActivationInAppDomain(pModuleFrom,pModuleTo,ai.GetDomain()); - } + completed &= PropagateActivationInAppDomain(pModuleFrom,pModuleTo,ai.GetDomain()); } } else -- cgit v1.2.3