Skip to content

Introduce native AssemblyLoadContext base class#32097

Merged
jkotas merged 5 commits into
dotnet:masterfrom
jkotas:alc
Feb 12, 2020
Merged

Introduce native AssemblyLoadContext base class#32097
jkotas merged 5 commits into
dotnet:masterfrom
jkotas:alc

Conversation

@jkotas

@jkotas jkotas commented Feb 11, 2020

Copy link
Copy Markdown
Member

No description provided.

@jkotas jkotas changed the title Introduce native AssemblyLoadContext baseclass Introduce native AssemblyLoadContext base class Feb 11, 2020
// Unmanaged counter-part of System.Runtime.Loader.AssemblyLoadContext
//
class AssemblyLoadContext : public IUnknownCommon<ICLRPrivBinder, IID_ICLRPrivBinder>
{

@jkotas jkotas Feb 11, 2020

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These is a lot more that can move here eventually.

@MichalStrehovsky MichalStrehovsky left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I'm no expert in this codebase. Thank you!

@vitek-karas vitek-karas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@elinor-fung elinor-fung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually unclear how we decide (decided?) where binder-related code should live (even the three binder implementations are split between binder and vm right now), so my only question would be why the new AssemblyLoadContext base should go under vm versus binder.

@jkotas

jkotas commented Feb 11, 2020

Copy link
Copy Markdown
Member Author

I think we should work on making binder directory, ICLRPrivBinder, etc. to go away. Ideally, the low-level details like AssemblyLoadContext unloading would stay in VM, but the rest of it would be in C#.

@jkotas

jkotas commented Feb 12, 2020

Copy link
Copy Markdown
Member Author

Failures are known issue #32126

@jkotas jkotas merged commit 0cf87c6 into dotnet:master Feb 12, 2020
@jkotas jkotas deleted the alc branch February 18, 2020 04:35
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants