Skip to content

[TrimmableTypeMap] Reflection-free TrimmableTypeMapType/ValueManager#11801

Draft
simonrozsival wants to merge 4 commits into
dev/simonrozsival/trimmable-typemap-corefrom
dev/simonrozsival/trimmable-managers
Draft

[TrimmableTypeMap] Reflection-free TrimmableTypeMapType/ValueManager#11801
simonrozsival wants to merge 4 commits into
dev/simonrozsival/trimmable-typemap-corefrom
dev/simonrozsival/trimmable-managers

Conversation

@simonrozsival

Copy link
Copy Markdown
Member

Summary

Adds the reflection-free TrimmableTypeMapValueManager and TrimmableTypeMapTypeManager, plus the opt-in wiring in JNIEnvInit (RuntimeFeature.TrimmableTypeMap). NativeAOT default stays managed; trimmable is opt-in.

This is stacked on #11799 (CoreCLR JavaMarshal split + Java.Interop bump) and deliberately excludes the array-codegen generator work (#11753) — Mono.Android still compiles, but trimmable apps won't be fully functional at runtime until the generator slices land.

Blocked on (prerequisites)

CI is not expected green until these merge. Marked draft.

Mono.Android builds with 0 errors.

Adds TrimmableTypeMapValueManager + reflection-free TrimmableTypeMapTypeManager and
wires opt-in selection (RuntimeFeature.TrimmableTypeMap) in JNIEnvInit. Builds on the
CoreCLR JavaMarshal split. Default stays managed; depends on array-codegen (#11753)
and other slices to be fully functional at runtime.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@simonrozsival simonrozsival added copilot `copilot-cli` or other AIs were used to author this trimmable-type-map labels Jun 29, 2026
simonrozsival and others added 3 commits June 29, 2026 13:56
Revert Color.cs/JavaProxyThrowable.cs formatting, RuntimeFeature feature-gates
(suppressions cover it), and the ITypeMap array-proxy rename (deferred to array PR).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot `copilot-cli` or other AIs were used to author this trimmable-type-map

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant