Skip to content

Adjust OFFSETOF__Thread__m_pInterpThreadContext for Apple mobile simulators - #121442

Merged
kotlarmilos merged 3 commits into
dotnet:mainfrom
kotlarmilos:bugfix/clr-ios-x64-build
Nov 14, 2025
Merged

kotlarmilos merged 3 commits into
dotnet:mainfrom
kotlarmilos:bugfix/clr-ios-x64-build

Conversation

@kotlarmilos

Copy link
Copy Markdown
Member

Description

This PR fixes builds for Apple mobile simulators.

@kotlarmilos
kotlarmilos requested review from akoeplinger, Copilot and janvorli and removed request for Copilot November 7, 2025 12:27
@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 Nov 7, 2025
@kotlarmilos kotlarmilos added os-ios Apple iOS area-CodeGen-Interpreter-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 7, 2025
@kotlarmilos kotlarmilos added this to the 11.0.0 milestone Nov 7, 2025
@kotlarmilos kotlarmilos changed the title Adjust OFFSETOF__Thread__m_pInterpThreadContext for Apple mobile simulators Adjust OFFSETOF__Thread__m_pInterpThreadContext for Apple mobile simulators Nov 7, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

@janvorli janvorli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Copilot AI review requested due to automatic review settings November 13, 2025 13:36

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 fixes builds for Apple mobile simulators by adjusting the OFFSETOF__Thread__m_pInterpThreadContext constant to account for different structure sizes between DEBUG and RELEASE builds on Unix platforms (which includes Apple mobile simulators running on AMD64 architecture).

  • Adds conditional compilation logic to differentiate DEBUG (0xb08) and RELEASE (0x2a0) offset values for Unix builds
  • Aligns AMD64 implementation with the existing ARM64 pattern for the same constant

Comment thread src/coreclr/vm/amd64/asmconstants.h Resolved
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 15, 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.

4 participants