Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
more PR feedback
  • Loading branch information
VSadov committed Jan 27, 2022
commit 0caa838cf99c40ff2614e00e731588dab2acf4e1
22 changes: 1 addition & 21 deletions src/coreclr/vm/appdomain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2522,26 +2522,6 @@ void AppDomain::LoadSystemAssemblies()
LoadAssembly(NULL, SystemDomain::System()->SystemPEAssembly(), FILE_ACTIVE);
}

FileLoadLevel AppDomain::GetDomainAssemblyLoadLevel(DomainAssembly *pFile)
{
CONTRACTL
{
THROWS;
GC_TRIGGERS;
MODE_ANY;
}
CONTRACTL_END

LoadLockHolder lock(this);

FileLoadLock* pLockEntry = (FileLoadLock *) lock->FindFileLock(pFile->GetPEAssembly());

if (pLockEntry == NULL)
return pFile->GetLoadLevel();
else
return pLockEntry->GetLoadLevel();
}

// This checks if the thread has initiated (or completed) loading at the given level. A false guarantees that
// (a) The current thread (or a thread blocking on the current thread) has not started loading the file
// at the given level, and
Expand Down Expand Up @@ -3018,7 +2998,7 @@ DomainAssembly *AppDomain::LoadDomainAssembly(FileLoadLock *pLock, FileLoadLevel
// lower level. In such a case, we throw an exception which transiently fails the current
// load, since it is likely we have not satisfied the caller.
// (An alternate, and possibly preferable, strategy here would be for all callers to explicitly
// identify the minimum load level acceptable via CheckLoadDomainAssembly and throw from there.)
// specify the minimum load level acceptable and throw if not reached.)

pFile->RequireLoadLevel((FileLoadLevel)(immediateTargetLevel-1));

Expand Down
1 change: 0 additions & 1 deletion src/coreclr/vm/appdomain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,6 @@ class AppDomain : public BaseDomain
CHECK CheckCanExecuteManagedCode(MethodDesc* pMD);
CHECK CheckLoading(DomainAssembly *pFile, FileLoadLevel level);

FileLoadLevel GetDomainAssemblyLoadLevel(DomainAssembly *pFile);
BOOL IsLoading(DomainAssembly *pFile, FileLoadLevel level);
static FileLoadLevel GetThreadFileLoadLevel();

Expand Down
1 change: 0 additions & 1 deletion src/coreclr/vm/assembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ Assembly::Assembly(BaseDomain *pDomain, PEAssembly* pPEAssembly, DebuggerAssembl
#ifdef FEATURE_COLLECTIBLE_TYPES
m_isCollectible(fIsCollectible),
#endif
m_nextAvailableModuleIndex(1),
m_pLoaderAllocator(NULL),
#ifdef FEATURE_COMINTEROP
m_pITypeLib(NULL),
Expand Down
3 changes: 0 additions & 3 deletions src/coreclr/vm/assembly.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,6 @@ class Assembly
FORCEINLINE BOOL IsDynamic() { LIMITED_METHOD_CONTRACT; return m_isDynamic; }
FORCEINLINE BOOL IsCollectible() { LIMITED_METHOD_DAC_CONTRACT; return m_isCollectible; }

DWORD GetNextModuleIndex() { LIMITED_METHOD_CONTRACT; return m_nextAvailableModuleIndex++; }

void AddType(Module* pModule,
mdTypeDef cl);
void AddExportedType(mdExportedType cl);
Expand Down Expand Up @@ -481,7 +479,6 @@ class Assembly
#ifdef FEATURE_COLLECTIBLE_TYPES
BOOL m_isCollectible;
#endif // FEATURE_COLLECTIBLE_TYPES
DWORD m_nextAvailableModuleIndex;
PTR_LoaderAllocator m_pLoaderAllocator;

#ifdef FEATURE_COMINTEROP
Expand Down