Skip to content

Conversation

@pjcollins
Copy link
Member

We can simplify JNIEnv.PropagateUncaughtException by removing the
fallback case that would attempt to look for
System.Diagnostics.Debugger.Mono_UnhandledException. In .NET the
MonodroidRuntime::monodroid_debugger_unhandled_exception function will
always be defined, and Mono_UnhandledException appears to no longer
exist in .NET. This simplification should also appease our latest set
of API scan results that were complaining about missing documentation
for Mono_UnhandledException.

We can simplify `JNIEnv.PropagateUncaughtException` by removing the
fallback case that would attempt to look for
`System.Diagnostics.Debugger.Mono_UnhandledException`.  In .NET the
`MonodroidRuntime::monodroid_debugger_unhandled_exception` function will
always be defined, and `Mono_UnhandledException` appears to no longer
exist in .NET.  This simplification should also appease our latest set
of API scan results that were complaining about missing documentation
for `Mono_UnhandledException`.
@pjcollins
Copy link
Member Author

I've updated the apkdesc files due to the size reduction in Mono.Android.Runtime.dll:

stdErr: Error: apkdiff: File 'assemblies/Mono.Android.Runtime.dll' has changed by -430 bytes (-8.35 %). This exceeds the threshold of 5.00 %.

@pjcollins pjcollins marked this pull request as ready for review January 9, 2024 17:53
@pjcollins pjcollins merged commit 15ebf49 into main Jan 9, 2024
@pjcollins pjcollins deleted the dev/pjc/unusedmue branch January 9, 2024 21:50
grendello added a commit that referenced this pull request Jan 10, 2024
* main:
  Bump to xamarin/monodroid@66a65e3b3e (#8604)
  [Mono.Android] Remove Mono_UnhandledException lookup (#8618)
@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants