[net6] `mono_threads_enter_gc_safe_region_unbalanced` performance regression
- Dominant language
- C#
- Stars
- 2.9k
- Forks
- 576
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
### Steps to Reproduce
Invoke `UIView.get_Superview` in a loop.
Xamarin:

.NET 6 RC1:

My guess is that it is caused by changes in `mono_threads_enter_gc_safe_region_unbalanced`, but I'm not completely sure.
### Expected Behavior
Performance is similar or better than Xamarin.iOS.
### Actual Behavior
Performance is slower around 20%.
### Environment
.NET 6 Mobile RC1
### Build Logs
### Example Project (If Possible)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.