-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Misc cleanup (fixing comments, deleting dead code) #117908
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
Conversation
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 focuses on cleaning up various parts of the CoreCLR codebase by removing dead code, fixing comments, and simplifying configurations. The changes primarily involve removing obsolete code paths, correcting comment inaccuracies, and eliminating unused functionality.
- Removes dead code including unused function declarations, obsolete conditional compilation blocks, and unnecessary attributes
- Fixes and updates comments to reflect current implementation details more accurately
- Simplifies build configurations by removing obsolete defines and reorganizing file lists
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/tests/nativeaot/SmokeTests/PInvoke/PInvoke.cs | Removes unused __BlockAllReflectionAttribute class definition |
src/coreclr/vm/runtimehandles.h | Removes unused CanCastToInternal function declaration |
src/coreclr/vm/eedbginterface.h | Removes unused HashMapEnumCallback typedef |
src/coreclr/utilcode/loaderheap.cpp | Removes obsolete comments about synchronization and interleaved heap behavior |
src/coreclr/utilcode/interleavedloaderheap.cpp | Updates comments to remove redundant "interleaved heap" references |
src/coreclr/utilcode/explicitcontrolloaderheap.cpp | Removes obsolete synchronization comment |
src/coreclr/utilcode/allocmemtracker.cpp | Removes unnecessary DACCESS_COMPILE conditional compilation block |
src/coreclr/utilcode/CMakeLists.txt | Moves allocmemtracker.cpp from common sources to specific sources list |
src/coreclr/tools/aot/ILCompiler.MetadataTransform/ILCompiler.MetadataTransform.csproj | Removes obsolete NETFX_45 define |
src/coreclr/tools/Common/Internal/NativeFormat/NativeFormatReader.String.cs | Removes obsolete .NET Framework 4.5 compatibility code |
src/coreclr/tools/Common/Internal/Metadata/NativeFormat/NativeMetadataReader.cs | Removes obsolete TODO comment about metadata schema signature |
src/coreclr/jit/importercalls.cpp | Fixes log message and removes obsolete architecture-specific comment |
src/coreclr/inc/palclr.h | Removes unused PAL exception handling macros and compiler instance abstractions |
src/coreclr/inc/loaderheap.h | Corrects various comment inaccuracies about function names and heap purposes |
docs/workflow/requirements/windows-requirements.md | Updates documentation to remove ARM32 references, focusing only on ARM64 |
No description provided.