Repository navigation
Use stdcall for dotnet_execute in dotnet-aot - #130908
Merged
Merged
Conversation
|
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. |
Contributor
There was a problem hiding this comment.
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
fxrmuxer’sdotnet_executefunction-pointer typedef to__stdcall. - Update the mock AOT SDK export to
__stdcalland add a Windows.deffile 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
AaronRobinsonMSFT
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #130903
cc @dotnet/appmodel @AaronRobinsonMSFT