Skip to content

Delete AppDomain::m_Stage - #117857

Merged
jkotas merged 2 commits into
dotnet:mainfrom
jkotas:Appdomain-STAGE
Jul 20, 2025
Merged

jkotas merged 2 commits into
dotnet:mainfrom
jkotas:Appdomain-STAGE

Conversation

@jkotas

@jkotas jkotas commented Jul 20, 2025

Copy link
Copy Markdown
Member

Left-over from .NET Framework

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread src/coreclr/debug/daccess/request.cpp Resolved
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

Comment thread src/coreclr/vm/appdomain.cpp Resolved

@rcj1 rcj1 left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread src/coreclr/debug/daccess/request.cpp Resolved
Comment thread src/coreclr/debug/daccess/request.cpp Resolved
@rcj1

rcj1 commented Jul 20, 2025

Copy link
Copy Markdown
Contributor

👍

@jkotas

jkotas commented Jul 20, 2025

Copy link
Copy Markdown
Member Author

/ba-g infrastructure timeouts

@jkotas
jkotas merged commit 6ade6d3 into dotnet:main Jul 20, 2025
@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.

3 participants