-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Rename ManagedAssemblyLoadContext to AssemblyLoadContext #118227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR performs a comprehensive rename of ManagedAssemblyLoadContext
to AssemblyLoadContext
throughout the codebase. The renaming is primarily focused on internal variable names, field names, and parameter names to improve consistency and clarity.
Key Changes:
- Renamed variables and parameters from
ManagedAssemblyLoadContext
toAssemblyLoadContext
- Updated struct field names and type names to remove the "Managed" prefix
- Updated comments and documentation to reflect the new naming
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
AssemblyBinder.cs | Renamed property from ManagedAssemblyLoadContext to AssemblyLoadContext |
Loader_1.cs | Updated usage of renamed property in contract implementation |
object-internals.h | Renamed enum type from MonoManagedAssemblyLoadContextInternalState to MonoAssemblyLoadContextInternalState |
loader-internals.h | Updated parameter name in comment documentation |
AssemblyLoadContext.Mono.cs | Renamed parameter names from gchManagedAssemblyLoadContext to gchAssemblyLoadContext |
ILLink.Descriptors.xml | Updated comment reference to reflect renamed type |
AssemblyLoadContext.cs | Updated comments and parameter names to use new naming convention |
nativelibrary.cpp | Renamed variable and function names from ManagedAssemblyLoadContext to AssemblyLoadContext |
loaderallocator.hpp | Renamed virtual method from ReleaseManagedAssemblyLoadContext to ReleaseAssemblyLoadContext |
loaderallocator.cpp | Updated method implementation and call sites to use new name |
assemblynative.hpp | Renamed parameter in function declaration |
assemblynative.cpp | Updated parameter names and variable names throughout function implementations |
assemblybinder.h | Renamed member field and associated getter/setter methods |
assemblybinder.cpp | Updated method calls to use renamed methods |
appdomain.cpp | Renamed parameter and variable names in function implementations |
datadescriptor.inc | Updated field name in data descriptor |
request.cpp | Renamed variable names in DAC request handling |
assemblybindercommon.hpp | Updated parameter name in function declaration |
defaultassemblybinder.cpp | Renamed variable names in binding logic |
customassemblybinder.cpp | Updated method calls and variable names |
assemblybindercommon.cpp | Renamed parameter names in function implementations |
AssemblyLoadContext.CoreCLR.cs | Updated parameter names in VM callback methods |
Context #117939 (review) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for
runtime/docs/design/datacontracts/Loader.md
Line 112 in ac764af
| `AssemblyBinder` | `ManagedAssemblyLoadContext` | Pointer to the AssemblyBinder's ManagedAssemblyLoadContext | |
/ba-g wasm timeouts with no logs |
There is no unmanaged assembly load context, so the "Managed" prefix is superfluous.