Skip to content

Replace HCIMPL with FCIMPL in CoreCLR - #136697

Merged
jkotas merged 3 commits into
dotnet:mainfrom
am11:chore/remove-hcimpl
Nov 1, 2026
Merged

jkotas merged 3 commits into
dotnet:mainfrom
am11:chore/remove-hcimpl

Conversation

@am11

@am11 am11 commented Oct 30, 2026

Copy link
Copy Markdown
Member

Follow-up to #136637 (comment) (HCIMPL and FCIMPL are equivalent).

  • Switched the remaining HCIMPL uses (JIT helpers in jithelpers.cpp, gchelpers.cpp, proftoeeinterfaceimpl.cpp and wasm/helpers.cpp) to FCIMPL and deleted the HCIMPL macros.
  • Added FCIMPL1_RAW/FCIMPL2_RAW/FCIMPL3_RAW without the prolog, matching HCIMPLn_RAW (on wasm they keep the wrapper and forward-declare their _IMPL, like HCIMPLn_RAW did).
  • Added FCDECLs for the helpers that had no prior declaration. FCIMPL needs one on wasm (the wrapper references funcname_IMPL) and on x86 Windows debug (FCSIGCHECK takes the function address). HCIMPLn emitted the _IMPL forward declaration itself, but doing that in FCIMPLn would break FCIMPLs of class members.

Validation: compared the preprocessed old/new definitions of every changed helper for x86 Unix, x86 Windows (MSVC headers, debug), wasm and x64 Linux: signatures and prologs are identical, the only differences are the added declarations. Also built linux-x64 Debug and ran tests.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 30, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

@jkotas

jkotas commented Oct 30, 2026

Copy link
Copy Markdown
Member

Conflicts

@am11
am11 requested a review from jkotas October 31, 2026 23:57

@jkotas jkotas 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.

Thanks

@jkotas
jkotas merged commit 085dabc into dotnet:main Nov 1, 2026
119 checks passed
@am11
am11 deleted the chore/remove-hcimpl branch November 1, 2026 00:07
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-VM-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants