From af4ec7c89d0192ad14392da04e8c097da8ec9e48 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 11 Aug 2018 07:43:16 -0700 Subject: Make RuntimeType sealed and deleted support for introspection only loads (#19427) - Sealed Runtime makes `is RuntimeType` and similar checks faster. These checks are fairly common in reflection. - Delete support for introspection only loads from the runtime. We do not plan to use in .NET Core. The support for introspection loads inherited from RuntimeType and thus it is incompatible with sealed RuntimeType. --- src/vm/domainfile.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/vm/domainfile.cpp') diff --git a/src/vm/domainfile.cpp b/src/vm/domainfile.cpp index c8bbcf7241..314f165eea 100644 --- a/src/vm/domainfile.cpp +++ b/src/vm/domainfile.cpp @@ -409,12 +409,6 @@ DomainAssembly *DomainFile::GetDomainAssembly() return (DomainAssembly *) this; } -BOOL DomainFile::IsIntrospectionOnly() -{ - WRAPPER_NO_CONTRACT; - return GetFile()->IsIntrospectionOnly(); -} - // Return true iff the debugger should get notifications about this assembly. // // Notes: @@ -431,7 +425,6 @@ BOOL DomainAssembly::IsVisibleToDebugger() SUPPORTS_DAC; // If you can't run an assembly, then don't send notifications to the debugger. - // This check includeds IsIntrospectionOnly(). return ((GetAssembly() != NULL) ? GetAssembly()->HasRunAccess() : FALSE); } @@ -1052,9 +1045,6 @@ void DomainFile::EagerFixups() WRAPPER_NO_CONTRACT; #ifdef FEATURE_PREJIT - if (IsIntrospectionOnly()) - return; - if (GetCurrentModule()->HasNativeImage()) { GetCurrentModule()->RunEagerFixups(); @@ -1191,12 +1181,6 @@ void DomainFile::VerifyExecution() } CONTRACT_END; - if (GetModule()->IsIntrospectionOnly()) - { - // Throw an exception - COMPlusThrow(kInvalidOperationException, IDS_EE_CODEEXECUTION_IN_INTROSPECTIVE_ASSEMBLY); - } - if(GetFile()->PassiveDomainOnly()) { // Remove path - location must be hidden for security purposes -- cgit v1.2.3