You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It means NativeAOT is using the AsyncCallContinuation intrinsic on a call that was not marked with runtime async call convention when the JIT queried the calling convention. This is most likely a NAOT issue.
It means NativeAOT is using the AsyncCallContinuation intrinsic on a call that was not marked with runtime async call convention when the JIT queried the calling convention. This is most likely a NAOT issue.
[ 3] 11 (0x00b) call 0A000002
In Compiler::impImportCall: opcode is call, kind=0, callRetType is struct, structSize is 260
Call is an async non-task await
[ 0] 17 (0x011) call 0A000003
In Compiler::impImportCall: opcode is call, kind=0, callRetType is ref, structSize is 0
Named Intrinsic System.Runtime.CompilerServices.AsyncHelpers.AsyncCallContinuation: Recognized****
Looks like the previous call was reported as async?
It means NativeAOT is using the AsyncCallContinuation intrinsic on a call that was not marked with runtime async call convention when the JIT queried the calling convention. This is most likely a NAOT issue.
[ 3] 11 (0x00b) call 0A000002
In Compiler::impImportCall: opcode is call, kind=0, callRetType is struct, structSize is 260
Call is an async non-task await
[ 0] 17 (0x011) call 0A000003
In Compiler::impImportCall: opcode is call, kind=0, callRetType is ref, structSize is 0
Named Intrinsic System.Runtime.CompilerServices.AsyncHelpers.AsyncCallContinuation: Recognized****
Looks like the previous call was reported as async?
Yes, indeed.
From a quick reading it looks like the stloc between the call and AsyncCallContinuation is making a call appear between them that gets the JIT confused. I think the JIT can work a bit harder to match the intrinsic to the preceding call now after #121952. I can look at that from the JIT side (after new years).
Alternatively the IL can be shaped to avoid the stloc between them -- that may or may not work.
It's possible we never JIT the thunks without optimizations in the coreclr testing, or that there are other differences between coreclr and NativeAOT for when RyuJIT uses a helper call for a struct copy.
Activity
dotnet-policy-service commentedon Dec 16, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
jakobbotsch commentedon Dec 16, 2025
It means NativeAOT is using the
AsyncCallContinuationintrinsic on a call that was not marked with runtime async call convention when the JIT queried the calling convention. This is most likely a NAOT issue.dotnet-policy-service commentedon Dec 16, 2025
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.
MichalStrehovsky commentedon Dec 16, 2025
Here's JitDump:
issue122582.txt
The parts that look relevant:
Looks like the previous call was reported as async?
jakobbotsch commentedon Dec 17, 2025
Yes, indeed.
From a quick reading it looks like the
stlocbetween the call andAsyncCallContinuationis making a call appear between them that gets the JIT confused. I think the JIT can work a bit harder to match the intrinsic to the preceding call now after #121952. I can look at that from the JIT side (after new years).Alternatively the IL can be shaped to avoid the
stlocbetween them -- that may or may not work.dotnet-policy-service commentedon Dec 17, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
MichalStrehovsky commentedon Dec 17, 2025
The stloc is not a native AOT invention, CoreCLR also has it:
runtime/src/coreclr/vm/asyncthunks.cpp
Lines 190 to 195 in 431c097
It's odd we're not seeing this in CoreCLR testing.
jakobbotsch commentedon Dec 18, 2025
It's possible we never JIT the thunks without optimizations in the coreclr testing, or that there are other differences between coreclr and NativeAOT for when RyuJIT uses a helper call for a struct copy.