diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-08-11 07:43:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-11 07:43:16 -0700 |
commit | af4ec7c89d0192ad14392da04e8c097da8ec9e48 (patch) | |
tree | 0b3018c1c576114d2b5b0f355df6ff48972a6c5d /src/vm/assembly.cpp | |
parent | f551543427176850c84b9e11c7b8d528c3f282a7 (diff) | |
download | coreclr-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/assembly.cpp')
-rw-r--r-- | src/vm/assembly.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vm/assembly.cpp b/src/vm/assembly.cpp index 6b2c3b8a15..e5e70ad91c 100644 --- a/src/vm/assembly.cpp +++ b/src/vm/assembly.cpp @@ -651,7 +651,7 @@ Assembly *Assembly::CreateDynamic(AppDomain *pDomain, CreateDynamicAssemblyArgs IfFailThrow(pAssemblyEmit->DefineAssembly(publicKey, publicKey.GetSize(), ulHashAlgId, name, &assemData, dwFlags, &ma)); - pFile = PEAssembly::Create(pCallerAssembly->GetManifestFile(), pAssemblyEmit, args->access & ASSEMBLY_ACCESS_REFLECTION_ONLY); + pFile = PEAssembly::Create(pCallerAssembly->GetManifestFile(), pAssemblyEmit); // Dynamically created modules (aka RefEmit assemblies) do not have a LoadContext associated with them since they are not bound // using an actual binder. As a result, we will assume the same binding/loadcontext information for the dynamic assembly as its @@ -878,12 +878,6 @@ DomainAssembly *Assembly::FindDomainAssembly(AppDomain *pDomain) RETURN GetManifestModule()->FindDomainAssembly(pDomain); } -BOOL Assembly::IsIntrospectionOnly() -{ - WRAPPER_NO_CONTRACT; - return m_pManifestFile->IsIntrospectionOnly(); -} - PTR_LoaderHeap Assembly::GetLowFrequencyHeap() { WRAPPER_NO_CONTRACT; |