diff options
Diffstat (limited to 'src/vm/ceeload.cpp')
-rw-r--r-- | src/vm/ceeload.cpp | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/vm/ceeload.cpp b/src/vm/ceeload.cpp index 5c4df90a80..23fa8f6e8e 100644 --- a/src/vm/ceeload.cpp +++ b/src/vm/ceeload.cpp @@ -4232,12 +4232,6 @@ BOOL Module::IsVisibleToDebugger() return FALSE; } - if (IsIntrospectionOnly()) - { - return FALSE; - } - - // If for whatever other reason, we can't run it, then don't notify the debugger about it. Assembly * pAssembly = GetAssembly(); if (!pAssembly->HasRunAccess()) @@ -5262,12 +5256,6 @@ Module::GetAssemblyIfLoaded( #ifdef FEATURE_COMINTEROP if (szWinRtNamespace != NULL) { - if (IsIntrospectionOnly()) - { // We do not have to implement this method for ReflectionOnly WinRT type requests - // ReflectionOnly WinRT types will never have instances on GC heap to be inspected by stackwalking or by debugger - break; - } - _ASSERTE(szWinRtClassName != NULL); CLRPrivBinderWinRT * pWinRtBinder = pAppDomainExamine->GetWinRtBinder(); @@ -5331,7 +5319,6 @@ Module::GetAssemblyIfLoaded( if (FAILED(spec.InitializeSpecInternal(kAssemblyRef, pMDImport, pCurAssemblyInExamineDomain, - IsIntrospectionOnly(), FALSE /*fAllowAllocation*/))) { continue; @@ -5392,8 +5379,6 @@ Module::GetAssemblyIfLoaded( // as the shared assembly context may have different binding rules as compared to the root context. At this time, we prefer to not fix this scenario until // there is customer need for a fix. } - else if (IsIntrospectionOnly()) - eligibleForAdditionalChecks = FALSE; AssemblySpec specSearchAssemblyRef; @@ -5405,7 +5390,6 @@ Module::GetAssemblyIfLoaded( if (FAILED(specSearchAssemblyRef.InitializeSpecInternal(kAssemblyRef, pMDImport, NULL, - FALSE, FALSE /*fAllowAllocation*/))) { eligibleForAdditionalChecks = FALSE; // If an assemblySpec can't be constructed then we're not going to succeed @@ -5482,7 +5466,6 @@ Module::GetAssemblyIfLoaded( if (FAILED(specFoundAssemblyRef.InitializeSpecInternal(assemblyRef, pImportFoundNativeImage, NULL, - FALSE, FALSE /*fAllowAllocation*/))) { continue; // If the spec cannot be loaded, it isn't the one we're looking for @@ -5614,7 +5597,7 @@ DomainAssembly * Module::LoadAssembly( szWinRtTypeNamespace, szWinRtTypeClassName); AssemblySpec spec; - spec.InitializeSpec(kAssemblyRef, GetMDImport(), GetDomainFile(GetAppDomain())->GetDomainAssembly(), IsIntrospectionOnly()); + spec.InitializeSpec(kAssemblyRef, GetMDImport(), GetDomainFile(GetAppDomain())->GetDomainAssembly()); // Set the binding context in the AssemblySpec if one is available. This can happen if the LoadAssembly ended up // invoking the custom AssemblyLoadContext implementation that returned a reference to an assembly bound to a different // AssemblyLoadContext implementation. @@ -5633,7 +5616,6 @@ DomainAssembly * Module::LoadAssembly( if (pDomainAssembly != NULL) { _ASSERTE( - IsIntrospectionOnly() || // GetAssemblyIfLoaded will not find introspection-only assemblies !fHasBindableIdentity || // GetAssemblyIfLoaded will not find non-bindable assemblies pDomainAssembly->IsSystem() || // GetAssemblyIfLoaded will not find mscorlib (see AppDomain::FindCachedFile) !pDomainAssembly->IsLoaded() || // GetAssemblyIfLoaded will not find not-yet-loaded assemblies @@ -13815,15 +13797,9 @@ LookupMapBase::ListEnumMemoryRegions(CLRDataEnumMemoryFlags flags) #endif // DACCESS_COMPILE -// Optimization intended for Module::IsIntrospectionOnly and Module::EnsureActive only +// Optimization intended for Module::EnsureActive only #include <optsmallperfcritical.h> -BOOL Module::IsIntrospectionOnly() -{ - WRAPPER_NO_CONTRACT; - return GetAssembly()->IsIntrospectionOnly(); -} - #ifndef DACCESS_COMPILE VOID Module::EnsureActive() { |