Skip to content

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Sep 29, 2025

Fixes #44132

@Copilot Copilot AI review requested due to automatic review settings September 29, 2025 03:16
Copy link
Contributor

@Copilot 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 obsolete PORTABILITY_ASSERT macros and related code that were originally used to mark areas requiring platform-specific implementation. The changes clean up code that is no longer needed now that the relevant platforms (X86, AMD64, ARM, ARM64) have been fully ported.

Key changes:

  • Removed PORTABILITY_ASSERT statements for completed platform ports
  • Updated PORTABILITY macros to include all finished ports (X86, AMD64, ARM, ARM64)
  • Simplified platform-specific code by removing unnecessary conditional compilation blocks

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/coreclr/vm/threadsuspend.cpp Refactored ExecutionState struct and removed X86-specific PORTABILITY_ASSERT
src/coreclr/vm/threads.cpp Removed PORTABILITY_ASSERT and unnecessary platform-specific comments
src/coreclr/utilcode/dacutil.cpp Replaced platform-specific machine type logic with IMAGE_FILE_MACHINE_NATIVE
src/coreclr/inc/palclr.h Extended PORTABILITY macro conditions to include all finished ports
src/coreclr/debug/di/valuehome.cpp Removed PORTABILITY_ASSERT and outdated platform comments

@jkotas jkotas merged commit 50570c0 into dotnet:main Sep 29, 2025
96 of 98 checks passed
@jkotas jkotas deleted the issue-44132-fix branch October 1, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reconsider assert(!"Message") usage in coreclr.

2 participants