Skip to content

Use stdcall for dotnet_execute in dotnet-aot - #130908

Merged
elinor-fung merged 1 commit into
dotnet:mainfrom
elinor-fung:dotnet-aot-callconv
Jul 16, 2026
Merged

elinor-fung merged 1 commit into
dotnet:mainfrom
elinor-fung:dotnet-aot-callconv

Conversation

@elinor-fung

Copy link
Copy Markdown
Member

Fixes #130903

cc @dotnet/appmodel @AaronRobinsonMSFT

@elinor-fung elinor-fung added this to the 11.0.0 milestone Jul 16, 2026
Copilot AI review requested due to automatic review settings July 16, 2026 19:06
@azure-pipelines

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

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 adjusts the ABI contract used to invoke the dotnet-aot SDK entry point (dotnet_execute) so that it uses the __stdcall calling convention on Windows, and updates the mock AOT SDK + documentation accordingly.

Changes:

  • Update fxr muxer’s dotnet_execute function-pointer typedef to __stdcall.
  • Update the mock AOT SDK export to __stdcall and add a Windows .def file to ensure the intended exported name.
  • Document the calling convention expectation in the sharedfx lookup design doc.
Show a summary per file
File Description
src/native/corehost/test/mockaotsdk/mockaotsdk.def Adds an exports definition file to export dotnet_execute on Windows.
src/native/corehost/test/mockaotsdk/mockaotsdk.cpp Changes the mock dotnet_execute entry point to __stdcall.
src/native/corehost/test/mockaotsdk/CMakeLists.txt Includes the .def file in the Windows build of the mock AOT SDK.
src/native/corehost/fxr/fx_muxer.cpp Updates the dotnet_execute function pointer type to __stdcall to match the intended ABI on Windows.
docs/design/features/sharedfx-lookup.md Updates the documented dotnet_execute signature and clarifies calling convention behavior.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 1

Comment thread docs/design/features/sharedfx-lookup.md Resolved
@elinor-fung
elinor-fung merged commit 0bc487c into dotnet:main Jul 16, 2026
46 checks passed
@github-project-automation github-project-automation Bot moved this to Done in AppModel Jul 16, 2026
@elinor-fung
elinor-fung deleted the dotnet-aot-callconv branch July 16, 2026 22:51
@dotnet-milestone-bot dotnet-milestone-bot Bot modified the milestones: 11.0.0, 11.0-preview7 Jul 17, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[NETSDKE2E][Regression] With 11.0.100-preview.7.26365.114 x86 SDK installed, some info are missing in "dotnet --info".

3 participants