Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 5, 2025

Backport of #121243 to release/9.0-staging

/cc @BrzVlad

Customer Impact

  • Customer reported
  • Found internally

Applications on maui-android can randomly crash during GC. We've had a few fixes for the tarjan bridge merged a few months ago, but there is still one more issue. The problem is caused by a specific optimization inside the tarjan gc bridge. The only workaround for a customer hitting this failure is to configure an environment variable so that their app uses a different gc bridge (which has worse performance). One customer reported that using the older gc bridge makes the application unusable due to degradation of performance. This PR allows users to opt out of a smaller optimization and keep using the tarjan gc bridge, as a workaround for .NET9.

Regression

  • Yes
  • No

Testing

Tested on our own gc bridge tests, with scenario causing the issue.

Risk

This PR has zero risk since it just adds support for disabling an optimization. By default, there is no change in behavior. I plan to backport to .NET10 the actual fix for this issue.

@BrzVlad BrzVlad added Servicing-consider Issue for next servicing release review area-GC-mono labels Nov 5, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @BrzVlad
See info in area-owners.md if you want to be subscribed.

@BrzVlad
Copy link
Member

BrzVlad commented Nov 6, 2025

/ba-g failures unrelated

@BrzVlad BrzVlad merged commit 54d40cf into release/9.0-staging Nov 6, 2025
73 of 84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-GC-mono Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants