Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Jul 20, 2025

Left-over from .NET Framework

Left-over from .NET Framework
Copilot AI review requested due to automatic review settings July 20, 2025 01:17
Copy link
Contributor

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 removes the AppDomain staging mechanism (m_Stage) that was a leftover from .NET Framework. The change simplifies the AppDomain implementation by eliminating the complex stage tracking system that is no longer needed in .NET Core/5+.

Key changes include:

  • Removal of the AppDomain::m_Stage member variable and associated Stage enum
  • Deletion of IsActive() and IsValid() methods that depended on stage checking
  • Simplification of AppDomain creation and initialization logic
  • Update of function signatures to remove unnecessary EXTERN_C and STDCALL modifiers

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/coreclr/vm/appdomain.hpp Removes Stage enum, IsActive/IsValid methods, and m_Stage member variable
src/coreclr/vm/appdomain.cpp Removes stage-related initialization and checks, simplifies contracts
src/coreclr/vm/threads.inl Updates GetAppDomain function signature
src/coreclr/vm/common.h Updates GetAppDomain declaration
src/coreclr/vm/profilingenumerators.cpp Replaces IsActive() check with simple null check
src/coreclr/debug/daccess/request.cpp Replaces dynamic stage with hardcoded STAGE_OPEN

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

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 aside from a redundant code line and some formatting

@rcj1
Copy link
Contributor

rcj1 commented Jul 20, 2025

👍

@jkotas
Copy link
Member Author

jkotas commented Jul 20, 2025

/ba-g infrastructure timeouts

@jkotas jkotas merged commit 6ade6d3 into dotnet:main Jul 20, 2025
88 of 97 checks passed
@jkotas jkotas deleted the Appdomain-STAGE branch July 20, 2025 23:11
@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants