-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Delete AppDomain::m_Stage #117857
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
Delete AppDomain::m_Stage #117857
Conversation
Left-over from .NET Framework
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 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_Stagemember variable and associatedStageenum - Deletion of
IsActive()andIsValid()methods that depended on stage checking - Simplification of AppDomain creation and initialization logic
- Update of function signatures to remove unnecessary
EXTERN_CandSTDCALLmodifiers
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 |
|
Tagging subscribers to this area: @mangod9 |
rcj1
left a comment
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 aside from a redundant code line and some formatting
|
👍 |
|
/ba-g infrastructure timeouts |
Left-over from .NET Framework