Skip to content

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Jul 31, 2025

There is no unmanaged assembly load context, so the "Managed" prefix is superfluous.

@Copilot Copilot AI review requested due to automatic review settings July 31, 2025 04:12
@jkotas jkotas requested a review from rcj1 July 31, 2025 04:12
Copy link
Contributor

@Copilot Copilot AI left a 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 to AssemblyLoadContext
  • 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

@dotnet-policy-service dotnet-policy-service bot added the linkable-framework Issues associated with delivering a linker friendly framework label Jul 31, 2025
@jkotas
Copy link
Member Author

jkotas commented Jul 31, 2025

Context #117939 (review)

@jkotas jkotas removed the linkable-framework Issues associated with delivering a linker friendly framework label Jul 31, 2025
@dotnet-policy-service dotnet-policy-service bot added the linkable-framework Issues associated with delivering a linker friendly framework label Jul 31, 2025
Copy link
Contributor

@rcj1 rcj1 left a comment

Choose a reason for hiding this comment

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

LGTM except for

| `AssemblyBinder` | `ManagedAssemblyLoadContext` | Pointer to the AssemblyBinder's ManagedAssemblyLoadContext |

@jkotas
Copy link
Member Author

jkotas commented Jul 31, 2025

/ba-g wasm timeouts with no logs

@jkotas jkotas merged commit 0720de0 into dotnet:main Jul 31, 2025
152 of 155 checks passed
@jkotas jkotas deleted the alc branch July 31, 2025 18:51
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-AssemblyLoader-coreclr linkable-framework Issues associated with delivering a linker friendly framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants