summaryrefslogtreecommitdiff
path: root/src/vm/domainfile.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-08-11 07:43:16 -0700
committerGitHub <noreply@github.com>2018-08-11 07:43:16 -0700
commitaf4ec7c89d0192ad14392da04e8c097da8ec9e48 (patch)
tree0b3018c1c576114d2b5b0f355df6ff48972a6c5d /src/vm/domainfile.cpp
parentf551543427176850c84b9e11c7b8d528c3f282a7 (diff)
downloadcoreclr-af4ec7c89d0192ad14392da04e8c097da8ec9e48.tar.gz
coreclr-af4ec7c89d0192ad14392da04e8c097da8ec9e48.tar.bz2
coreclr-af4ec7c89d0192ad14392da04e8c097da8ec9e48.zip
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.
Diffstat (limited to 'src/vm/domainfile.cpp')
-rw-r--r--src/vm/domainfile.cpp16
1 files changed, 0 insertions, 16 deletions
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