Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

Native AOT doesn't have a MethodDesc at runtime. But that's fine, we don't have a loader to keep alive either.

Cc @dotnet/ilc-contrib

@MichalStrehovsky MichalStrehovsky added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 7, 2025
@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

Copilot AI left a comment

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 restricts the use of specialized continuation allocation helpers to non-Native AOT scenarios. Native AOT doesn't require the loader keep-alive mechanism since it lacks a runtime MethodDesc and doesn't have a loader to maintain. The change adds IsTargetAbi(CORINFO_NATIVEAOT_ABI) checks to ensure Native AOT always uses CORINFO_HELP_ALLOC_CONTINUATION instead of the keep-alive variants.

  • Added Native AOT ABI checks to skip loader keep-alive logic
  • Forces Native AOT to use standard continuation allocation helper

Native AOT doesn't have a `MethodDesc` at runtime. But that's fine, we don't have a loader to keep alive either.
@MichalStrehovsky
Copy link
Member Author

/ba-g android timeout is dotnet/dnceng#6408

@MichalStrehovsky MichalStrehovsky merged commit e689bf8 into dotnet:main Nov 10, 2025
100 of 112 checks passed
@MichalStrehovsky MichalStrehovsky deleted the aotalloccontinuation branch November 10, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI runtime-async

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants