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/assemblyspec.hpp | |
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/assemblyspec.hpp')
-rw-r--r-- | src/vm/assemblyspec.hpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/vm/assemblyspec.hpp b/src/vm/assemblyspec.hpp index 2415aea738..6db0d1ac8f 100644 --- a/src/vm/assemblyspec.hpp +++ b/src/vm/assemblyspec.hpp @@ -50,7 +50,6 @@ class AssemblySpec : public BaseAssemblySpec HRESULT InitializeSpecInternal(mdToken kAssemblyRefOrDef, IMDInternalImport *pImport, DomainAssembly *pStaticParent, - BOOL fIntrospectionOnly, BOOL fAllowAllocation); // InitializeSpecInternal should be used very carefully so it's made private. @@ -97,8 +96,7 @@ class AssemblySpec : public BaseAssemblySpec void InitializeSpec(mdToken kAssemblyRefOrDef, IMDInternalImport *pImport, - DomainAssembly *pStaticParent = NULL, - BOOL fIntrospectionOnly = FALSE) + DomainAssembly *pStaticParent = NULL) { CONTRACTL { @@ -108,7 +106,7 @@ class AssemblySpec : public BaseAssemblySpec MODE_ANY; } CONTRACTL_END; - HRESULT hr=InitializeSpecInternal(kAssemblyRefOrDef, pImport,pStaticParent,fIntrospectionOnly,TRUE); + HRESULT hr=InitializeSpecInternal(kAssemblyRefOrDef, pImport,pStaticParent,TRUE); if(FAILED(hr)) EEFileLoadException::Throw(this,hr); }; @@ -117,8 +115,7 @@ class AssemblySpec : public BaseAssemblySpec void InitializeSpec(PEAssembly *pFile); HRESULT InitializeSpec(StackingAllocator* alloc, ASSEMBLYNAMEREF* pName, - BOOL fParse = TRUE, - BOOL fIntrospectionOnly = FALSE); + BOOL fParse = TRUE); void AssemblyNameInit(ASSEMBLYNAMEREF* pName, PEImage* pImageInfo); //[in,out], [in] @@ -185,7 +182,6 @@ class AssemblySpec : public BaseAssemblySpec BaseAssemblySpec::CopyFrom(pSource); - SetIntrospectionOnly(pSource->IsIntrospectionOnly()); SetParentAssembly(pSource->GetParentAssembly()); // Copy the details of the fallback load context binder @@ -225,11 +221,9 @@ class AssemblySpec : public BaseAssemblySpec Assembly *LoadAssembly(FileLoadLevel targetLevel, BOOL fThrowOnFileNotFound = TRUE, - BOOL fRaisePrebindEvents = TRUE, StackCrawlMark *pCallerStackMark = NULL); DomainAssembly *LoadDomainAssembly(FileLoadLevel targetLevel, BOOL fThrowOnFileNotFound = TRUE, - BOOL fRaisePrebindEvents = TRUE, StackCrawlMark *pCallerStackMark = NULL); //**************************************************************************************** |