Does the Xamarin.iOS garbage collector use a fixed

2019-07-17 06:29发布

问题:

In my tests, Xamarin.iOS always seems to use two generations. That is, GC.MaxGeneration always returns 1. The Xamarin Cross-Platform Performance Documentation seems to support that by referring to the Mono SGen Documentation, which states the SGen uses two generations. On the other hand, the Xamarin API Documentation of GC.MaxGeneration suggests that MaxGeneration can increase over time.

Is GC.MaxGeneration fixed in Xamarin.iOS, or can it increase given enough time?

Also, just in case: Has the behaviour changed in the last year? Reason for this question: Alongside the current stable release of Xamarin iOS, we are using Cycle 6 Service Release 4 for bugfixes for an older product.