Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Dec 16, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 00:37
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 16, 2025
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 performs miscellaneous cleanup across the runtime codebase, removing unused code and improving code quality without changing functionality.

  • Removes unused HResults constants, PAL API declarations, and helper functions
  • Generalizes platform-specific code by removing unnecessary TARGET_ARM64 conditionals
  • Improves code quality with better variable scoping and const correctness

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/Directory/GetFiles.cs Simplifies Windows test for directories with trailing spaces/periods by removing \?\ prefix requirement
src/libraries/Common/src/System/HResults.cs Removes unused E_BOUNDS and E_CHANGED_STATE constants
src/coreclr/vm/exinfo.h Removes TARGET_ARM64 conditional around m_handlingFramePC field (now used on all platforms)
src/coreclr/vm/exceptionhandling.cpp Removes TARGET_ARM64 conditionals around handlingFramePC usage
src/coreclr/vm/ceemain.cpp Improves GSCookie initialization by using hires_ticks on Windows and secure random bytes on Unix
src/coreclr/vm/callstubgenerator.cpp Adds static const qualifiers to read-only routine pointer arrays
src/coreclr/tools/Common/TypeSystem/IL/Stubs/DelegateMethodILEmitter.cs Moves signature variable declaration closer to first use for better code organization
src/coreclr/runtime/CachedInterfaceDispatch.cpp Adds const qualifier to g_rgDispatchStubs array
src/coreclr/pal/inc/pal.h Removes unused PAL_RegisterForRuntimeStartup and PAL_UnregisterForRuntimeStartup declarations
src/coreclr/nativeaot/Runtime/startup.cpp Updates GSCookie initialization to use secure random bytes instead of low-res ticks
src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs Removes TARGET_ARM64 conditionals, generalizes to "some platforms" in comments
src/coreclr/debug/ee/rcthread.cpp Removes unused OpenWin32EventOrThrow helper function
src/coreclr/debug/ee/controller.cpp Updates comments from platform-specific (WIN64/x86) to general descriptions about funclets and optimizations

@jkotas jkotas merged commit b1e550c into dotnet:main Dec 17, 2025
127 of 129 checks passed
@jkotas jkotas deleted the misc branch December 17, 2025 14:28
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants