forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PEFile::GetAssemblyLoadContext during early runtime stages (dotne…
…t#38222) * Fix PEFile::GetAssemblyLoadContext during early runtime stages The PEFile::GetAssemblyLoadContext was asserting if it was called before the m_pTPABinderContext was created in AppDomain::CreateBinderContext. That turned out to be a problem for a check performed in ReadyToRunInfo::Initialize. This change calls AppDomain::CreateBinderContext from the PEFile::SetupAssemblyLoadContext instead of calling AppDomain::GetTPABinderContext. That ensures that the PEFile::GetAssemblyLoadContext can always return valid AssemblyLoadContext.
- Loading branch information
Showing
5 changed files
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters