Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ When diagnosing runtime, build, or test failures, follow these practices. They e
make prepare && make all CONFIGURATION=Release
./dotnet-local.sh build -t:Install -c Release \
tests/Mono.Android-Tests/Mono.Android-Tests/Mono.Android.NET-Tests.csproj \
-p:_AndroidTypeMapImplementation=<llvm-ir|managed|trimmable> \
-p:_AndroidTypeMapImplementation=<llvm-ir|trimmable> \
-p:UseMonoRuntime=<true|false>
(
cd tests/Mono.Android-Tests/Mono.Android-Tests
../../../dotnet-local.sh test Mono.Android.NET-Tests.csproj --no-build -c Release \
--report-trx --results-directory ../../../bin/TestRelease/TestResults \
-p:_AndroidTypeMapImplementation=<llvm-ir|managed|trimmable> \
-p:_AndroidTypeMapImplementation=<llvm-ir|trimmable> \
-p:UseMonoRuntime=<true|false>
)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,7 @@ internal protected JreRuntime (NativeAotRuntimeOptions builder)

static JniRuntime.JniTypeManager CreateDefaultTypeManager ()
{
if (RuntimeFeature.TrimmableTypeMap) {
return new TrimmableTypeMapTypeManager ();
}

return CreateManagedTypeManager ();

[UnconditionalSuppressMessage ("Trimming", "IL2026", Justification = "Managed type manager is preserved by the MarkJavaObjects trimmer step.")]
[UnconditionalSuppressMessage ("Trimming", "IL3050", Justification = "This type manager won't be used in Native AOT builds in the future.")]
static JniRuntime.JniTypeManager CreateManagedTypeManager () => new ManagedTypeManager ();
return new TrimmableTypeMapTypeManager ();
}

[UnconditionalSuppressMessage ("Trimming", "IL2026", Justification = "CoreCLR value manager is preserved by the MarkJavaObjects trimmer step.")]
Expand Down
Loading
Loading