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
{{ message }}
Repository navigation
[TrimmableTypeMap] Address all trimming and AOT warnings #10794
From the trimmable typemap runtime PR: we added several [DynamicallyAccessedMembers] annotations that should be revisited and removed where possible:
JavaPeerContainerFactory<T> — the DAM on T preserves all constructor metadata on every type in the typemap. We should investigate removing DAM from JavaDictionary<K,V>, JavaList<T>, JavaCollection<T> type parameters instead.
JavaPeerProxy<T>.InvokerType — DAM on the property return type; should be removable once invoker types are preserved by the trimmer step.
JavaPeerContainerFactory.CreateHigherRankArray — uses MakeArrayType() at runtime for rank 4+; may cause NativeAOT code bloat.
General goal: remove all unnecessary or incorrectly used [DynamicallyAccessedMembers] — especially those added alongside #pragma warning disable as workarounds.
Activity
simonrozsival commentedon Mar 18, 2026
From the trimmable typemap runtime PR: we added several
[DynamicallyAccessedMembers]annotations that should be revisited and removed where possible:JavaPeerContainerFactory<T>— the DAM onTpreserves all constructor metadata on every type in the typemap. We should investigate removing DAM fromJavaDictionary<K,V>,JavaList<T>,JavaCollection<T>type parameters instead.JavaPeerProxy<T>.InvokerType— DAM on the property return type; should be removable once invoker types are preserved by the trimmer step.JavaPeerContainerFactory.CreateHigherRankArray— usesMakeArrayType()at runtime for rank 4+; may cause NativeAOT code bloat.General goal: remove all unnecessary or incorrectly used
[DynamicallyAccessedMembers]— especially those added alongside#pragma warning disableas workarounds.[Mono.Android] Use `DiagnosticMethodInfo` for AOT-safe stack frame in…
[Trimming] Update value managers for annotated peer activation (#11436)
[Trimming] Use trimmable type map for non-generic collection CopyTo (#…
[Trimming] Use assembly-qualified name in ResourceDesignerAttribute (#…
[NativeAOT] Make the trimmable typemap the default (#12121)