Skip to content

[TrimmableTypeMap] Support pre-generated framework typemaps in the aggregate + array-maps case (Debug NativeAOT) #12128

Description

@simonrozsival

Follow-up to #10792 / PR #12127.

Pre-generated framework typemaps (Mono.Android + Java.Interop, anchored on the Java.Lang.Object universe) are consumed correctly in:

  • the single/shared universe (Release NativeAOT), and
  • the aggregate/per-assembly universe without array maps (maxArrayRank == 0, e.g. CoreCLR Debug).

The remaining combination — aggregate universe + array maps (maxArrayRank > 0, i.e. Debug NativeAOT) — is not yet wired: RootTypeMapAssemblyGenerator.EmitInitializeWithAggregateTypeMap would need to add the Java.Lang.Object framework universe (and its per-rank __ArrayMapRank{N} array maps) as an extra element alongside the app's per-assembly universes.

Until then, the app build gracefully falls back to scanning Mono.Android/Java.Interop normally for that combination (no speedup, but correct).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssues that need to be assigned.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions